From: Madhumitha Prabakaran <madhumithabiw@gmail.com>
To: gregkh@linuxfoundation.org, outreachy-kernel@googlegroups.com
Cc: Madhumitha Prabakaran <madhumithabiw@gmail.com>
Subject: [PATCH] Staging: rtl872bs: Remove local variables in functions
Date: Wed, 13 Mar 2019 10:54:25 -0500 [thread overview]
Message-ID: <20190313155425.5548-1-madhumithabiw@gmail.com> (raw)
Remove declarations of local variables in functions rtw_init_cmd_priv
and rtw_init_evt_priv.
Issue suggested by Coccinelle using ret.cocci.
Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_cmd.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index 91520ca3bbad..814a4b7677a9 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -297,18 +297,12 @@ struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue)
u32 rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
{
- u32 res;
-
- res = _rtw_init_cmd_priv(pcmdpriv);
- return res;
+ return _rtw_init_cmd_priv(pcmdpriv);
}
u32 rtw_init_evt_priv(struct evt_priv *pevtpriv)
{
- int res;
-
- res = _rtw_init_evt_priv(pevtpriv);
- return res;
+ return _rtw_init_evt_priv(pevtpriv);
}
void rtw_free_evt_priv(struct evt_priv *pevtpriv)
--
2.17.1
next reply other threads:[~2019-03-13 15:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-13 15:54 Madhumitha Prabakaran [this message]
2019-03-13 19:48 ` [Outreachy kernel] [PATCH] Staging: rtl872bs: Remove local variables in functions Julia Lawall
2019-03-13 21:49 ` Madhumthia Prabakaran
2019-03-13 22:06 ` Julia Lawall
2019-03-13 22:36 ` Madhumthia Prabakaran
2019-03-14 6:15 ` Julia Lawall
2019-03-14 16:03 ` Madhumthia Prabakaran
2019-03-14 19:52 ` Julia Lawall
2019-03-14 22:14 ` Madhumthia Prabakaran
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=20190313155425.5548-1-madhumithabiw@gmail.com \
--to=madhumithabiw@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
/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.