projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaf74a0
)
[SCSI] esas2r: smatch - Remove test for impossible condition (uint8 > 255)
author
Bradley Grove
<bgrove@attotech.com>
Thu, 29 Aug 2013 19:55:43 +0000
(15:55 -0400)
committer
James 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
patch
|
blob
|
history
diff --git
a/drivers/scsi/esas2r/esas2r_ioctl.c
b/drivers/scsi/esas2r/esas2r_ioctl.c
index
f3d0cb8
..
e5b0902
100644
(file)
--- a/
drivers/scsi/esas2r/esas2r_ioctl.c
+++ b/
drivers/scsi/esas2r/esas2r_ioctl.c
@@
-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;