diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index f85d9100f554..fd97d07577ad 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
@@ -1503,7 +1503,7 @@ int scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, | |||
1503 | __FUNCTION__, channel, id, lun)); | 1503 | __FUNCTION__, channel, id, lun)); |
1504 | 1504 | ||
1505 | if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || | 1505 | if (((channel != SCAN_WILD_CARD) && (channel > shost->max_channel)) || |
1506 | ((id != SCAN_WILD_CARD) && (id > shost->max_id)) || | 1506 | ((id != SCAN_WILD_CARD) && (id >= shost->max_id)) || |
1507 | ((lun != SCAN_WILD_CARD) && (lun > shost->max_lun))) | 1507 | ((lun != SCAN_WILD_CARD) && (lun > shost->max_lun))) |
1508 | return -EINVAL; | 1508 | return -EINVAL; |
1509 | 1509 | ||