Message ID | 20170921135210.8087-1-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show |
Series | notifier: remove double parenthesis | expand |
On 21/09/2017 15:52, Christian Storm wrote: > Fix clang's -Wparentheses-equality complaint. > > Signed-off-by: Christian Storm <christian.storm@siemens.com> > --- > core/notifier.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/core/notifier.c b/core/notifier.c > index 396bf1e..5c7dd7b 100644 > --- a/core/notifier.c > +++ b/core/notifier.c > @@ -101,7 +101,7 @@ void notify(RECOVERY_STATUS status, int error, const char *msg) > struct notify_elem *elem; > struct notify_ipc_msg notifymsg; > > - if ((pid == getpid())) { > + if (pid == getpid()) { > if (notifyfd > 0) { > notifymsg.status = status; > notifymsg.error = error; > Applied to -master, thanks! Best regards, Stefano Babic
diff --git a/core/notifier.c b/core/notifier.c index 396bf1e..5c7dd7b 100644 --- a/core/notifier.c +++ b/core/notifier.c @@ -101,7 +101,7 @@ void notify(RECOVERY_STATUS status, int error, const char *msg) struct notify_elem *elem; struct notify_ipc_msg notifymsg; - if ((pid == getpid())) { + if (pid == getpid()) { if (notifyfd > 0) { notifymsg.status = status; notifymsg.error = error;
Fix clang's -Wparentheses-equality complaint. Signed-off-by: Christian Storm <christian.storm@siemens.com> --- core/notifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)