[stgt] [PATCH] fix compile warning

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Jul 15 09:03:55 CEST 2010


On Thu, 15 Jul 2010 15:59:14 +0900
FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp> wrote:

> spc.c: In function 'lu_config':
> spc.c:1631: warning: unused variables 'lu_bsoflags'
> 
> Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
> ---
>  usr/spc.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)

Oops, here's the proper patch.

=
From: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Subject: [PATCH] fix compile warning

spc.c: In function 'lu_config':
spc.c:1631: warning: unused variables 'lu_bsoflags'

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/spc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/spc.c b/usr/spc.c
index 22fa975..8257b96 100644
--- a/usr/spc.c
+++ b/usr/spc.c
@@ -1628,7 +1628,7 @@ int lu_config(struct scsi_lu *lu, char *params, match_fn_t *fn)
 
 	while ((p = strsep(&params, ",")) != NULL) {
 		substring_t args[MAX_OPT_ARGS];
-		int token, lu_bsoflags = 0;
+		int token;
 
 		if (!*p)
 			continue;
-- 
1.6.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list