[OPW,kernel,4/5] Staging: lustre: Fix initialisation of statics to 0 or NULL
diff mbox

Message ID 36d4773f173e0a8786d5800dbf0336dd31b5b00b.1382622886.git.rashika.kheria@gmail.com
State Accepted
Headers show

Commit Message

Rashika Oct. 24, 2013, 1:59 p.m. UTC
This patch fixes the following checkpatch.pl issues in lnet/lnet/acceptor.c:
ERROR: do not initialise statics to 0 or NULL

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 drivers/staging/lustre/lnet/lnet/acceptor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Lisa Nguyen Oct. 25, 2013, 6:01 a.m. UTC | #1
On Thu, Oct 24, 2013 at 6:59 AM, Rashika Kheria
<rashika.kheria@gmail.com> wrote:
> This patch fixes the following checkpatch.pl issues in lnet/lnet/acceptor.c:
> ERROR: do not initialise statics to 0 or NULL
>
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>
> ---
>  drivers/staging/lustre/lnet/lnet/acceptor.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lnet/lnet/acceptor.c b/drivers/staging/lustre/lnet/lnet/acceptor.c
> index 7de8630..2beb9a0 100644
> --- a/drivers/staging/lustre/lnet/lnet/acceptor.c
> +++ b/drivers/staging/lustre/lnet/lnet/acceptor.c
> @@ -73,7 +73,7 @@ CFS_MODULE_PARM(accept_backlog, "i", int, 0444,
>  CFS_MODULE_PARM(accept_timeout, "i", int, 0644,
>                 "Acceptor's timeout (seconds)");
>
> -static char *accept_type = NULL;
> +static char *accept_type;
>
>  int
>  lnet_acceptor_get_tunables(void)
> --
> 1.7.9.5
>
> --
> 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.

Patch
diff mbox

diff --git a/drivers/staging/lustre/lnet/lnet/acceptor.c b/drivers/staging/lustre/lnet/lnet/acceptor.c
index 7de8630..2beb9a0 100644
--- a/drivers/staging/lustre/lnet/lnet/acceptor.c
+++ b/drivers/staging/lustre/lnet/lnet/acceptor.c
@@ -73,7 +73,7 @@  CFS_MODULE_PARM(accept_backlog, "i", int, 0444,
 CFS_MODULE_PARM(accept_timeout, "i", int, 0644,
 		"Acceptor's timeout (seconds)");
 
-static char *accept_type = NULL;
+static char *accept_type;
 
 int
 lnet_acceptor_get_tunables(void)