tree-wide: use cocinnelle to apply _NEG_ macros
This commit is contained in:
@@ -434,7 +434,7 @@ int sd_netlink_wait(sd_netlink *nl, uint64_t timeout_usec) {
|
||||
return 0;
|
||||
|
||||
r = netlink_poll(nl, false, timeout_usec);
|
||||
if (r < 0 && ERRNO_IS_TRANSIENT(r)) /* Convert EINTR to "something happened" and give user a chance to run some code before calling back into us */
|
||||
if (ERRNO_IS_NEG_TRANSIENT(r)) /* Convert EINTR to "something happened" and give user a chance to run some code before calling back into us */
|
||||
return 1;
|
||||
return r;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user