mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user