Commit a75869d1 authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by James Bottomley

[SCSI] scsi_debug: remove unnecessary condition test in devInfoReg

open_devip is always non NULL.
Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: default avatarDouglas Gilbert <dougg@torque.net>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent 5cb2fc06
...@@ -2059,7 +2059,7 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev) ...@@ -2059,7 +2059,7 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev)
return NULL; return NULL;
} }
} }
if (open_devip) {
open_devip->channel = sdev->channel; open_devip->channel = sdev->channel;
open_devip->target = sdev->id; open_devip->target = sdev->id;
open_devip->lun = sdev->lun; open_devip->lun = sdev->lun;
...@@ -2075,9 +2075,8 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev) ...@@ -2075,9 +2075,8 @@ static struct sdebug_dev_info * devInfoReg(struct scsi_device * sdev)
} }
if (sdev->lun == SAM2_WLUN_REPORT_LUNS) if (sdev->lun == SAM2_WLUN_REPORT_LUNS)
open_devip->wlun = SAM2_WLUN_REPORT_LUNS & 0xff; open_devip->wlun = SAM2_WLUN_REPORT_LUNS & 0xff;
return open_devip; return open_devip;
}
return NULL;
} }
static void mk_sense_buffer(struct sdebug_dev_info * devip, int key, static void mk_sense_buffer(struct sdebug_dev_info * devip, int key,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment