[OPW,kernel,1/2] Staging: lustre: fix ERROR: do not initialise statics to 0 or NULL in module.c
diff mbox

Message ID 1381264312-4537-1-git-send-email-ebru.akagunduz@gmail.com
State Accepted
Headers show

Commit Message

Ebru Akagündüz Oct. 8, 2013, 8:31 p.m. UTC
Fix checkpatch.pl issues with do not initialise statics to 0 or NULL in module.c

Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>
---
 drivers/staging/lustre/lnet/lnet/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Josh Triplett Oct. 8, 2013, 11:18 p.m. UTC | #1
On Tue, Oct 08, 2013 at 11:31:51PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with do not initialise statics to 0 or NULL in module.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

> ---
>  drivers/staging/lustre/lnet/lnet/module.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/lustre/lnet/lnet/module.c b/drivers/staging/lustre/lnet/lnet/module.c
> index afb8175..f323f03 100644
> --- a/drivers/staging/lustre/lnet/lnet/module.c
> +++ b/drivers/staging/lustre/lnet/lnet/module.c
> @@ -37,7 +37,7 @@
>  #define DEBUG_SUBSYSTEM S_LNET
>  #include <linux/lnet/lib-lnet.h>
>  
> -static int config_on_load = 0;
> +static int config_on_load;
>  CFS_MODULE_PARM(config_on_load, "i", int, 0444,
>  		"configure network at module load");
>  
> -- 
> 1.8.1.2
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Greg Kroah-Hartman Oct. 11, 2013, 8:27 p.m. UTC | #2
On Tue, Oct 08, 2013 at 11:31:51PM +0300, Ebru Akagunduz wrote:
> Fix checkpatch.pl issues with do not initialise statics to 0 or NULL in module.c
> 
> Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com>

Applied, thanks.

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/lustre/lnet/lnet/module.c b/drivers/staging/lustre/lnet/lnet/module.c
index afb8175..f323f03 100644
--- a/drivers/staging/lustre/lnet/lnet/module.c
+++ b/drivers/staging/lustre/lnet/lnet/module.c
@@ -37,7 +37,7 @@ 
 #define DEBUG_SUBSYSTEM S_LNET
 #include <linux/lnet/lib-lnet.h>
 
-static int config_on_load = 0;
+static int config_on_load;
 CFS_MODULE_PARM(config_on_load, "i", int, 0444,
 		"configure network at module load");