Skip to contentSkip to conversation

Remove unused variables

PATCH New Haneen Mohammed 1 participant 1 message Mar 7, 2015

lore
Share & tools
lore
#0 lore raw

cover Remove unused variables

This patchset is concerned with removing variable that was used only to store the return value of a function. These issues were detected and resolved using the following coccinelle script:

@@
expression ret;
identifier f;
@@

-ret =
+return
f(...);
-return ret;

Haneen Mohammed (2):
Staging: dgap: Remove unused variable
Staging: speakup: Remove unused variable

 drivers/staging/dgap/dgap.c        | 4 +---
 drivers/staging/speakup/kobjects.c | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)
Signature · 1 line
1.9.1