mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
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:
parent
3293e6a8ff
commit
ea159e7af0
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ __extension__ ({ \
|
||||||
#if __GNUC__ >= 10 || defined(__clang__)
|
#if __GNUC__ >= 10 || defined(__clang__)
|
||||||
#define spa_steal_ptr(ptr) ((__typeof__(*(ptr)) *) spa_exchange((ptr), NULL))
|
#define spa_steal_ptr(ptr) ((__typeof__(*(ptr)) *) spa_exchange((ptr), NULL))
|
||||||
#else
|
#else
|
||||||
#define spa_steal_ptr(ptr) ((__typeof__(ptr)) spa_exchange((ptr), NULL))
|
#define spa_steal_ptr(ptr) spa_exchange((ptr), NULL)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define spa_steal_fd(fd) spa_exchange((fd), -1)
|
#define spa_steal_fd(fd) spa_exchange((fd), -1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue