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 <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3942 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-12-01 03:31:30 +00:00
parent 295adebc0f
commit 33891c34fa
+1 -1
View File
@@ -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;