[SCSI] esas2r: smatch - Remove test for impossible condition (uint8 > 255)
authorBradley Grove <bgrove@attotech.com>
Thu, 29 Aug 2013 19:55:43 +0000 (15:55 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 6 Sep 2013 18:13:53 +0000 (11:13 -0700)
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/esas2r/esas2r_ioctl.c

index f3d0cb8..e5b0902 100644 (file)
@@ -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;