diff mbox series

notifier: remove double parenthesis

Message ID 20170921135210.8087-1-christian.storm@siemens.com
State Accepted
Headers show
Series notifier: remove double parenthesis | expand

Commit Message

Storm, Christian Sept. 21, 2017, 1:52 p.m. UTC
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(-)

Comments

Stefano Babic Sept. 22, 2017, 9:35 a.m. UTC | #1
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 mbox series

Patch

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;