From dc8a83a5b664eb4a7deebc4ef511ed1dc52caacd Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Thu, 28 Apr 2016 21:17:23 +0000 Subject: [PATCH] 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 --- sbin/camcontrol/camcontrol.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 8deef3ba85f..6c9228e50e6 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);