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

Message ID 0cecdac16eb419ffb3d8403e211e1c8729596f89.1382726938.git.rashika.kheria@gmail.com
State Accepted
Headers show

Commit Message

Rashika Oct. 25, 2013, 6:54 p.m. UTC
This patch fixes the following checkpatch.pl error in
lnet/lnet/config.c:
ERROR: do not initialise statics to 0 or NULL

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

Comments

Lisa Nguyen Oct. 27, 2013, 8:25 p.m. UTC | #1
On Fri, Oct 25, 2013 at 11:54 AM, Rashika Kheria
<rashika.kheria@gmail.com> wrote:
> This patch fixes the following checkpatch.pl error in
> lnet/lnet/config.c:
> ERROR: do not initialise statics to 0 or NULL
>
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Greg applied this.

Lisa
> ---
>  drivers/staging/lustre/lnet/lnet/config.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lnet/lnet/config.c b/drivers/staging/lustre/lnet/lnet/config.c
> index 6328a0e..de323f7 100644
> --- a/drivers/staging/lustre/lnet/lnet/config.c
> +++ b/drivers/staging/lustre/lnet/lnet/config.c
> @@ -43,7 +43,7 @@ typedef struct {                          /* tmp struct for parsing routes */
>         char           ltb_text[0];     /* text buffer */
>  } lnet_text_buf_t;
>
> -static int lnet_tbnob = 0;                     /* track text buf allocation */
> +static int lnet_tbnob;                 /* track text buf allocation */
>  #define LNET_MAX_TEXTBUF_NOB     (64<<10)      /* bound allocation */
>  #define LNET_SINGLE_TEXTBUF_NOB  (4<<10)
>
> --
> 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/config.c b/drivers/staging/lustre/lnet/lnet/config.c
index 6328a0e..de323f7 100644
--- a/drivers/staging/lustre/lnet/lnet/config.c
+++ b/drivers/staging/lustre/lnet/lnet/config.c
@@ -43,7 +43,7 @@  typedef struct {			    /* tmp struct for parsing routes */
 	char	       ltb_text[0];     /* text buffer */
 } lnet_text_buf_t;
 
-static int lnet_tbnob = 0;			/* track text buf allocation */
+static int lnet_tbnob;			/* track text buf allocation */
 #define LNET_MAX_TEXTBUF_NOB     (64<<10)	/* bound allocation */
 #define LNET_SINGLE_TEXTBUF_NOB  (4<<10)