diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-15 08:26:52 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-17 05:56:23 (GMT) |
commit | f4edff5208df48ebb3099a3b4a521eb58803f877 (patch) | |
tree | 2b211aedb14302bd84aee39faf8ec453a972c185 /drivers/staging/dgnc/dgnc_driver.c | |
parent | d09c1b96a731639436402bf0d957b974f4eed6b8 (diff) | |
download | linux-f4edff5208df48ebb3099a3b4a521eb58803f877.tar.xz |
staging: dgnc: dgnc_driver: Remove useless initialisation
Remove intialisation of a variable that is immediately reassigned.
The semantic patch used to find this is:
// <smpl>
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
// </smpl>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_driver.c')
-rw-r--r-- | drivers/staging/dgnc/dgnc_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index 619baa9..fc6d298 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -167,7 +167,7 @@ static void dgnc_cleanup_module(void) */ static int __init dgnc_init_module(void) { - int rc = 0; + int rc; /* * Initialize global stuff |