[SCSI] esas2r: smatch - Remove test for impossible condition (uint8 > 255)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Bradley Grove <bgrove@attotech.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
eaf74a06f1
commit
8d3ac48408
|
@ -415,7 +415,7 @@ static int csmi_ioctl_callback(struct esas2r_adapter *a,
|
|||
lun = tm->lun;
|
||||
}
|
||||
|
||||
if (path > 0 || tid > ESAS2R_MAX_ID) {
|
||||
if (path > 0) {
|
||||
rq->func_rsp.ioctl_rsp.csmi.csmi_status = cpu_to_le32(
|
||||
CSMI_STS_INV_PARAM);
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue