Commit 8d3ac484 authored by Bradley Grove's avatar Bradley Grove Committed by James Bottomley

[SCSI] esas2r: smatch - Remove test for impossible condition (uint8 > 255)

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBradley Grove <bgrove@attotech.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent eaf74a06
...@@ -415,7 +415,7 @@ static int csmi_ioctl_callback(struct esas2r_adapter *a, ...@@ -415,7 +415,7 @@ static int csmi_ioctl_callback(struct esas2r_adapter *a,
lun = tm->lun; lun = tm->lun;
} }
if (path > 0 || tid > ESAS2R_MAX_ID) { if (path > 0) {
rq->func_rsp.ioctl_rsp.csmi.csmi_status = cpu_to_le32( rq->func_rsp.ioctl_rsp.csmi.csmi_status = cpu_to_le32(
CSMI_STS_INV_PARAM); CSMI_STS_INV_PARAM);
return false; return false;
......
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