]> git.karo-electronics.de Git - linux-beck.git/commit
staging: vt6655: remove unused variable
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Fri, 27 Feb 2015 12:51:29 +0000 (14:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Mar 2015 23:11:08 +0000 (15:11 -0800)
commit0c596a31ec3c3db2fe5ee78e9f46ae2e0bcb9aa0
tree4e2520522feb668d52853f92d4d60d7a7f3cbefc
parent0a19b14cc5c6553c29e861a3516c5720c940b8a3
staging: vt6655: remove unused variable

This patch removes a variable that was simply used to
store the return value of a function call before
returning it.

The issue was detected and resolved using the following
coccinelle script:

@@
identifier len,f;
@@

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

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/rxtx.c