All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] staging: Remove unnecessary variables
@ 2015-10-26 17:54 Amitoj Kaur Chawla
  2015-10-26 17:55 ` [PATCH 1/3] staging: rtl8712: " Amitoj Kaur Chawla
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Amitoj Kaur Chawla @ 2015-10-26 17:54 UTC (permalink / raw)
  To: outreachy-kernel

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-26 17:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-26 17:54 [PATCH 0/3] staging: Remove unnecessary variables Amitoj Kaur Chawla
2015-10-26 17:55 ` [PATCH 1/3] staging: rtl8712: " 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

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.