提交 8d3ac484 编写于 作者: B Bradley Grove 提交者: James Bottomley

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

Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NBradley Grove <bgrove@attotech.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 eaf74a06
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册