From: Amitoj Kaur Chawla <amitoj1606@gmail.com>
To: outreachy-kernel@googlegroups.com
Subject: [PATCH 0/3] staging: Remove unnecessary variables
Date: Mon, 26 Oct 2015 23:24:16 +0530 [thread overview]
Message-ID: <cover.1445881808.git.amitoj1606@gmail.com> (raw)
This patchset removes unnecessary variables that can be replaced with
a single line of code.
The semantic patch used to find this is:
// <smpl>
@@
expression ret;
@@
- if (ret) return ret;
- return 0;
+ return ret;
@@
local idexpression ret;
expression e;
@@
- ret = e;
- return ret;
+ return e;
@@
type T;
identifier i;
expression E;
@@
- T i = E;
... when != i
@@
type T;
identifier i;
@@
- T i;
... when != i
// </smpl>
Amitoj Kaur Chawla (3):
staging: rtl8712: Remove unnecessary variables
staging: rtl8188eu: Remove unnecessary variables
staging: sm750fb: sm750: Remove unnecessary variable
drivers/staging/rtl8188eu/hal/fw.c | 5 +----
drivers/staging/rtl8712/rtl871x_mp.c | 10 ++++------
drivers/staging/sm750fb/sm750.c | 4 +---
3 files changed, 6 insertions(+), 13 deletions(-)
--
1.9.1
next reply other threads:[~2015-10-26 17:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 17:54 Amitoj Kaur Chawla [this message]
2015-10-26 17:55 ` [PATCH 1/3] staging: rtl8712: Remove unnecessary variables Amitoj Kaur Chawla
2015-10-26 17:57 ` [PATCH 2/3] staging: rtl8188eu: " Amitoj Kaur Chawla
2015-10-26 17:58 ` [PATCH 3/3] staging: sm750fb: sm750: Remove unnecessary variable Amitoj Kaur Chawla
2015-10-26 17:59 ` Amitoj Kaur Chawla
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=cover.1445881808.git.amitoj1606@gmail.com \
--to=amitoj1606@gmail.com \
--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.