All of lore.kernel.org
 help / color / mirror / Atom feed
From: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.c>
Subject: [Outreachy kernel] [PATCH] staging: rtl8723bs: Remove unnecessary parentheses
Date: Thu, 28 Mar 2019 19:33:28 +0530	[thread overview]
Message-ID: <1553781808-10349-1-git-send-email-payal.s.kshirsagar.98@gmail.com> (raw)

Challenge suggested by coccinelle

This patch removes unnecessary parentheses while returning a value.
Using following semantic patch:

@@ 
local idexpression id;
@@

- return(id);
+ return id;

Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.c>
---
diff -u -p a/os_dep/ioctl_linux.c b/os_dep/ioctl_linux.c
--- a/os_dep/ioctl_linux.c
+++ b/os_dep/ioctl_linux.c
@@ -961,7 +961,7 @@ static int rtw_wx_set_pmkid(struct net_d
         if (pPMK->cmd == IW_PMKSA_ADD) {
                 DBG_871X("[rtw_wx_set_pmkid] IW_PMKSA_ADD!\n");
                 if (!memcmp(strIssueBssid, strZeroMacAddress, ETH_ALEN))
-                    return(intReturn);
+                    return intReturn;
                 else
                     intReturn = true;
 
@@ -1489,7 +1489,7 @@ exit:
 	DBG_871X("DBG_IOCTL %s:%d return %d\n", __func__, __LINE__, ret);
 	#endif
 
-	return ret ;
+	return ret;
 
 }
 


             reply	other threads:[~2019-03-28 14:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-28 14:03 Payal Kshirsagar [this message]
2019-03-28 14:26 ` [Outreachy kernel] [PATCH] staging: rtl8723bs: Remove unnecessary parentheses Julia Lawall
2019-03-28 14:34   ` Payal Kshirsagar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1553781808-10349-1-git-send-email-payal.s.kshirsagar.98@gmail.com \
    --to=payal.s.kshirsagar.98@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=payal.s.kshirsagar.98@gmail.c \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.