|
From: <vl...@us...> - 2011-12-01 03:31:38
|
Revision: 3942
http://scst.svn.sourceforge.net/scst/?rev=3942&view=rev
Author: vlnb
Date: 2011-12-01 03:31:30 +0000 (Thu, 01 Dec 2011)
Log Message:
-----------
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 <bva...@ac...>
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2011-12-01 03:28:39 UTC (rev 3941)
+++ trunk/scst/src/scst_targ.c 2011-12-01 03:31:30 UTC (rev 3942)
@@ -4374,7 +4374,7 @@
*/
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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|