Skip to content

Commit

Permalink
Remove logically impossible test in scsidoinquiry(..)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ngie-eign committed Apr 28, 2016
1 parent f466fcd commit dc8a83a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sbin/camcontrol/camcontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dc8a83a

Please sign in to comment.