aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_frontend_iscsi.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-09-25 18:15:34 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-09-25 18:15:34 +0000
commitc30a4c18718d583035ba0299f8a4e5f95526d89f (patch)
tree5f43a64127c48228b8197586ebc8c9bac04e13a3 /sys/cam/ctl/ctl_frontend_iscsi.c
parent67cc546dfc4c1636d9c6019e75f6bfe63a3c179c (diff)
downloadsrc-c30a4c18718d583035ba0299f8a4e5f95526d89f.tar.gz
src-c30a4c18718d583035ba0299f8a4e5f95526d89f.zip
Remove some dead code found by Clang analyzer.
Notes
Notes: svn path=/head/; revision=288221
Diffstat (limited to 'sys/cam/ctl/ctl_frontend_iscsi.c')
-rw-r--r--sys/cam/ctl/ctl_frontend_iscsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/cam/ctl/ctl_frontend_iscsi.c b/sys/cam/ctl/ctl_frontend_iscsi.c
index 8b981d8f3f33..30cca91efca9 100644
--- a/sys/cam/ctl/ctl_frontend_iscsi.c
+++ b/sys/cam/ctl/ctl_frontend_iscsi.c
@@ -461,6 +461,7 @@ cfiscsi_decode_lun(uint64_t encoded)
break;
}
result = (lun[1] << 16) + (lun[2] << 8) + lun[3];
+ break;
default:
CFISCSI_WARN("unsupported LUN format 0x%jx",
(uintmax_t)encoded);
@@ -1377,10 +1378,8 @@ int
cfiscsi_init(void)
{
struct cfiscsi_softc *softc;
- int retval;
softc = &cfiscsi_softc;
- retval = 0;
bzero(softc, sizeof(*softc));
mtx_init(&softc->lock, "cfiscsi", NULL, MTX_DEF);