iser-target: Fix sparse warning
authorSagi Grimberg <sagig@mellanox.com>
Sun, 25 Jan 2015 17:11:19 +0000 (19:11 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 30 Jan 2015 21:06:22 +0000 (13:06 -0800)
isert_debug_level should be static, hence no need
to initialize it.

Reported-by: Shachar Raindel <raindel@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c

index dafb3c531f96f7ae61e70ff9f37d9324bee687ff..29adca121238e13d71cbec75be52bbeac521377d 100644 (file)
@@ -38,7 +38,7 @@
 #define ISER_MAX_CQ_LEN                (ISER_MAX_RX_CQ_LEN + ISER_MAX_TX_CQ_LEN + \
                                 ISERT_MAX_CONN)
 
-int isert_debug_level = 0;
+static int isert_debug_level;
 module_param_named(debug_level, isert_debug_level, int, 0644);
 MODULE_PARM_DESC(debug_level, "Enable debug tracing if > 0 (default:0)");