summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2016-04-28 21:17:23 +0000
committerngie <ngie@FreeBSD.org>2016-04-28 21:17:23 +0000
commit99c904a3659673ad4a68c35ac54198318722deb3 (patch)
tree5cca97aa9bf4b18822dcdaa86a1343e23ae08135 /sbin
parent1c9f21bebad4e8c97a257c7335d2bc4429cda6da (diff)
downloadFreeBSD-src-99c904a3659673ad4a68c35ac54198318722deb3.zip
FreeBSD-src-99c904a3659673ad4a68c35ac54198318722deb3.tar.gz
Remove logically impossible test in scsidoinquiry(..)
It was already done 4 lines prior and the value of error didn't change MFC after: 3 days Reported by: Coverity CID: 1011236 Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sbin')
-rw-r--r--sbin/camcontrol/camcontrol.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 8deef3b..6c9228e 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -814,9 +814,6 @@ scsidoinquiry(struct cam_device *device, int argc, char **argv,
if (arglist & CAM_ARG_GET_SERIAL)
scsiserial(device, retry_count, timeout);
- if (error != 0)
- return(error);
-
if (arglist & CAM_ARG_GET_XFERRATE)
error = camxferrate(device);
OpenPOWER on IntegriCloud