aboutsummaryrefslogtreecommitdiff
path: root/src/sg_copy_results.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2016-04-05 03:18:04 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2016-04-05 03:18:04 +0000
commit63a8ecf3099475c7560036054dae728a1869685e (patch)
tree25077d46b98c0231e960624e7fea47dc7257f167 /src/sg_copy_results.c
parent61a0b017ebca98eca9c5d85264af45b3eb1853e5 (diff)
downloadsg3_utils-63a8ecf3099475c7560036054dae728a1869685e.tar.gz
clang --analyze static checker clean ups
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@689 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_copy_results.c')
-rw-r--r--src/sg_copy_results.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/sg_copy_results.c b/src/sg_copy_results.c
index 1f490d07..235ca616 100644
--- a/src/sg_copy_results.c
+++ b/src/sg_copy_results.c
@@ -432,25 +432,20 @@ main(int argc, char * argv[])
}
if (1 == do_hex) {
dStrHex((const char *)cpResultBuff, xfer_len, 1);
- res = 0;
goto finish;
}
switch (sa) {
case 4: /* Failed segment details */
scsi_failed_segment_details(cpResultBuff, xfer_len);
- res = 0;
break;
case 3: /* Operating parameters */
scsi_operating_parameters(cpResultBuff, xfer_len);
- res = 0;
break;
case 0: /* Copy status */
scsi_copy_status(cpResultBuff, xfer_len);
- res = 0;
break;
default:
dStrHex((const char *)cpResultBuff, xfer_len, 1);
- res = 0;
break;
}