Staging: i4l: Do not initialise statics to 0.
PATCH 1/1 Staging: i4l: Do not initialise statics to 0.
Do not initialise statics to 0.
static variable by default initialise to 0,so no need to explicite initialisation. This issue was found by checkpatch .
--- drivers/staging/i4l/act2000/module.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/i4l/act2000/module.c +1 -1
@@ -28,7 +28,7 @@ static unsigned short act2000_isa_ports[] =static act2000_card *cards = (act2000_card *)NULL ;/* Parameters to be set by insmod */ -static int act_bus =0 ; +static int act_bus;static int act_port =-1 ;/* -1 = Autoprobe */ static int act_irq =-1 ;static char *act_id ="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" ;
Signature · 1 line
1.7.1
Quoted 4 lines · Sandhya Bankar
Do not initialise statics to 0.
static variable by default initialise to 0,so
no need to explicite initialisation.
This issue was found by checkpatch .
Your commit message should fill more of the available 80 characters. Sentences should start with a capital letter. Punctuation should have no space before and a space after. The commit message is preserved forever, so it is good for it to look nice.
julia
Quoted 29 lines
Signed-off-by Sandhya Bankar <[email protected]>--- drivers/staging/i4l/act2000/module.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/staging/i4l/act2000/module.c +1
-2@@ -28,7 +28,7 @@ static unsigned short act2000_isa_ports[] =static act2000_card *cards = (act2000_card *)NULL ;/* Parameters to be set by insmod */ -static int act_bus =0 ; +static int act_bus;static int act_port =-1 ;/* -1 = Autoprobe */ static int act_irq =-1 ;static char *act_id ="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" ; --1.7.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160917011052.GA14721%40sandhya.
For more options, visit https://groups.google.com/d/optout.