projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d09c1b9
)
staging: dgnc: dgnc_driver: Remove useless initialisation
author
Amitoj Kaur Chawla
<
[email protected]
>
Thu, 15 Oct 2015 08:26:52 +0000
(13:56 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 17 Oct 2015 05:56:23 +0000
(22:56 -0700)
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/dgnc/dgnc_driver.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dgnc/dgnc_driver.c
b/drivers/staging/dgnc/dgnc_driver.c
index 619baa9e0c126d6dfeb28c0542d5392102a6c094..fc6d2989e28ff01a6195313180f6e601a0ca6a50 100644
(file)
--- 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