All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/24] remove unused variables
@ 2015-02-27 12:48 Aya Mahfouz
  2015-02-27 12:49 ` [PATCH 01/24] staging: wlan-ng: remove unused variable Aya Mahfouz
                   ` (23 more replies)
  0 siblings, 24 replies; 36+ messages in thread
From: Aya Mahfouz @ 2015-02-27 12:48 UTC (permalink / raw)
  To: outreachy-kernel

This patchset is concerned with removing variables that were used only
once to store the value of a function and then return it. The following
coccinelle script was used to discover the pattern and resolve it:

@@
identifier len,f;
@@

-int len;
 ... when != len
     when strict
-len =
+return
        f(...);
-return len;

Aya Mahfouz (24):
  staging: wlan-ng: remove unused variable
  staging: wlan-ng: remove unused variable
  staging: vt6655: remove unused variable
  staging: rtl8188eu: os_dep: remove unused variable
  staging: rtl8188eu: os_dep: remove unused variable
  staging: lustre: ptlrpc: remove unused variable
  staging: lustre: osc: remove unused variable
  staging: lustre: obdecho: remove unused variable
  staging: lustre: obdclass: remove unused variable
  staging: lustre: obdclass: remove unused variable
  staging: lustre: mgc: remove unused variable
  staging: wlan-ng: remove unused variable
  staging: lustre: mdc: remove unused variable
  staging: lustre: lov: remove unused variable
  staging: lustre: lmv: remove unused variables
  staging: lustre: llite: remove unused variable
  staging: lustre: llite: remove unused variable
  staging: lustre: llite: remove unused variable
  staging: lustre: llite: remove unused variable
  staging: iio: meter: remove unused variable
  staging: iio: meter: remove unused variables
  staging: iio: light: remove unused variable
  staging: fbtft: remove unused variable
  staging: dgap: remove unused variable

 drivers/staging/dgap/dgap.c                         |  5 +----
 drivers/staging/fbtft/fbtft-core.c                  |  4 +---
 drivers/staging/iio/light/tsl2583.c                 |  4 +---
 drivers/staging/iio/meter/ade7758_core.c            | 10 ++--------
 drivers/staging/iio/meter/ade7759.c                 |  5 +----
 drivers/staging/lustre/lustre/llite/dcache.c        |  5 +----
 drivers/staging/lustre/lustre/llite/file.c          |  4 +---
 drivers/staging/lustre/lustre/llite/lproc_llite.c   |  5 +----
 drivers/staging/lustre/lustre/llite/vvp_io.c        |  5 +----
 drivers/staging/lustre/lustre/lmv/lmv_obd.c         |  8 ++------
 drivers/staging/lustre/lustre/lov/lov_obd.c         |  5 ++---
 drivers/staging/lustre/lustre/mdc/mdc_locks.c       |  4 +---
 drivers/staging/lustre/lustre/mdc/mdc_request.c     |  4 +---
 drivers/staging/lustre/lustre/mgc/mgc_request.c     |  5 +----
 drivers/staging/lustre/lustre/obdclass/dt_object.c  |  5 +----
 drivers/staging/lustre/lustre/obdclass/lu_object.c  |  6 +-----
 drivers/staging/lustre/lustre/obdecho/echo_client.c |  5 +----
 drivers/staging/lustre/lustre/osc/lproc_osc.c       |  5 +----
 drivers/staging/lustre/lustre/ptlrpc/nrs.c          |  5 +----
 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c      |  4 +---
 drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c    | 16 +++-------------
 drivers/staging/vt6655/rxtx.c                       |  6 +-----
 drivers/staging/wlan-ng/prism2mib.c                 | 11 ++---------
 drivers/staging/wlan-ng/prism2sta.c                 |  5 +----
 24 files changed, 30 insertions(+), 111 deletions(-)

-- 
1.9.3


-- 
Kind Regards,
Aya Saif El-yazal Mahfouz


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

end of thread, other threads:[~2015-03-02  0:27 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 12:48 [PATCH 00/24] remove unused variables Aya Mahfouz
2015-02-27 12:49 ` [PATCH 01/24] staging: wlan-ng: remove unused variable Aya Mahfouz
2015-02-27 12:50 ` [PATCH 02/24] " Aya Mahfouz
2015-02-27 12:51 ` [PATCH 03/24] staging: vt6655: " Aya Mahfouz
2015-02-27 12:53 ` [PATCH 04/24] staging: rtl8188eu: os_dep: " Aya Mahfouz
2015-02-27 15:59   ` [Outreachy kernel] " Julia Lawall
2015-02-27 12:54 ` [PATCH 05/24] " Aya Mahfouz
2015-02-27 12:55 ` [PATCH 06/24] staging: lustre: ptlrpc: " Aya Mahfouz
2015-02-27 12:55 ` [PATCH 07/24] staging: lustre: osc: " Aya Mahfouz
2015-02-27 12:56 ` [PATCH 08/24] staging: lustre: obdecho: " Aya Mahfouz
2015-02-27 12:57 ` [PATCH 09/24] staging: lustre: obdclass: " Aya Mahfouz
2015-02-27 12:57 ` [PATCH 10/24] " Aya Mahfouz
2015-02-27 12:59 ` [PATCH 11/24] staging: lustre: mgc: " Aya Mahfouz
2015-02-27 13:01 ` [PATCH 12/24] staging: lustre: mdc: " Aya Mahfouz
2015-02-27 13:02 ` [PATCH 13/24] " Aya Mahfouz
2015-02-27 15:56   ` [Outreachy kernel] " Julia Lawall
2015-02-27 13:02 ` [PATCH 14/24] staging: lustre: lov: " Aya Mahfouz
2015-02-27 15:56   ` [Outreachy kernel] " Julia Lawall
2015-02-27 19:13     ` Aya Mahfouz
2015-02-27 13:03 ` [PATCH 15/24] staging: lustre: lmv: remove unused variables Aya Mahfouz
2015-03-02  0:27   ` [Outreachy kernel] " Greg KH
2015-02-27 13:06 ` [PATCH 16/24] staging: lustre: llite: remove unused variable Aya Mahfouz
2015-02-27 15:55   ` [Outreachy kernel] " Julia Lawall
2015-02-27 13:06 ` [PATCH 17/24] " Aya Mahfouz
2015-02-27 13:07 ` [PATCH 18/24] " Aya Mahfouz
2015-02-27 15:54   ` [Outreachy kernel] " Julia Lawall
2015-02-27 19:09     ` Aya Mahfouz
2015-02-27 13:07 ` [PATCH 19/24] " Aya Mahfouz
2015-02-27 13:08 ` [PATCH 20/24] staging: iio: meter: " Aya Mahfouz
2015-02-27 13:09 ` [PATCH 21/24] staging: iio: meter: remove unused variables Aya Mahfouz
2015-02-27 15:53   ` [Outreachy kernel] " Julia Lawall
2015-02-27 16:00   ` Daniel Baluta
2015-02-27 19:06     ` Aya Mahfouz
2015-02-27 13:09 ` [PATCH 22/24] staging: iio: light: remove unused variable Aya Mahfouz
2015-02-27 13:10 ` [PATCH 23/24] staging: fbtft: " Aya Mahfouz
2015-02-27 13:11 ` [PATCH 24/24] staging: dgap: " Aya Mahfouz

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.