Staging: dgap: Remove unused variable
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Sat, 7 Mar 2015 21:02:34 +0000 (00:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Mar 2015 12:30:40 +0000 (13:30 +0100)
commit6019ee4095d9a40927060d33e79344a3f34b8a96
tree445e21ec94e9938f0ad6635c3da1f5391803e19e
parentacd3f6cf0579ef993bbfc50b84592fc8019f7887
Staging: dgap: Remove unused variable

This patch removes variable that was used to store only the return value of a function call.

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

@@
expression ret;
identifier f;
@@

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

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c