From 33891c34fafbaba1614793721462c6c0351f506b Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 1 Dec 2011 03:31:30 +0000 Subject: [PATCH] In the function scst_mgmt_translate_lun() the variable tgt_dev is used as a loop variable and is used inside that loop only. Hence it is not necessary to initialize it to NULL. BSD-Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3942 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 86ba0e2b1..ad56b8b75 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -4374,7 +4374,7 @@ void scst_cmd_tasklet(long p) */ static int scst_mgmt_translate_lun(struct scst_mgmt_cmd *mcmd) { - struct scst_tgt_dev *tgt_dev = NULL; + struct scst_tgt_dev *tgt_dev; struct list_head *head; int res = -1;