spa: utils: cleanup: remove unnecessary cast

`spa_exchange()` already returns a value with the type of the first
input, so there is no need to cast again.
This commit is contained in:
Barnabás Pőcze 2023-09-16 17:21:08 +02:00
parent 3293e6a8ff
commit ea159e7af0

View file

@ -44,7 +44,7 @@ __extension__ ({ \
#if __GNUC__ >= 10 || defined(__clang__)
#define spa_steal_ptr(ptr) ((__typeof__(*(ptr)) *) spa_exchange((ptr), NULL))
#else
#define spa_steal_ptr(ptr) ((__typeof__(ptr)) spa_exchange((ptr), NULL))
#define spa_steal_ptr(ptr) spa_exchange((ptr), NULL)
#endif
#define spa_steal_fd(fd) spa_exchange((fd), -1)