From: Rahul Krishnan <mrahul.krishnan@gmail.com>
To: m@bues.ch
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] ssb: main.c: This patch removes unnecessary return statement using spatch tool
Date: Fri, 6 Jan 2017 20:50:43 +0530 [thread overview]
Message-ID: <20170106152043.GA6383@rahul> (raw)
This patch removes unnecessary return statement using spatch.
Signed-off-by: Rahul Krishnan <mrahul.krishnan@gmail.com>
---
drivers/ssb/main.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c
index d1a7507..ae3b7fe 100644
--- a/drivers/ssb/main.c
+++ b/drivers/ssb/main.c
@@ -1,4 +1,4 @@
-/*
+ patch /home/rahul/git/kernels/staging/drivers//*
* Sonics Silicon Backplane
* Subsystem core
*
@@ -1272,9 +1272,7 @@ u32 ssb_admatch_size(u32 adm)
default:
SSB_WARN_ON(1);
}
- size = (1 << (size + 1));
-
- return size;
+ return (1 << (size + 1));
}
EXPORT_SYMBOL(ssb_admatch_size);
--
2.7.4
next reply other threads:[~2017-01-06 15:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-06 15:20 Rahul Krishnan [this message]
2017-01-06 22:39 ` [PATCH] ssb: main.c: This patch removes unnecessary return statement using spatch tool Rafał Miłecki
2017-01-06 22:40 ` Rafał Miłecki
2017-01-06 22:46 ` Michael Büsch
2017-01-07 0:52 ` Julian Calaby
2017-01-07 13:39 ` kbuild test robot
2017-01-07 13:57 ` kbuild test robot
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=20170106152043.GA6383@rahul \
--to=mrahul.krishnan@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=m@bues.ch \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).