diff options
author | Jitendra Bhivare <jitendra.bhivare@broadcom.com> | 2017-10-10 16:18:18 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-10-11 14:18:30 -0400 |
commit | 45efc940678ec813f2e6bc4fc45f9f19e686a3b8 (patch) | |
tree | e1263123cae33bafe3ef2682d0634f43ebb1ddc6 /drivers/scsi/be2iscsi/be_cmds.c | |
parent | 1cb3c3fd60361f0e900af8e7ecdcd65bed70ab08 (diff) | |
download | linux-stable-45efc940678ec813f2e6bc4fc45f9f19e686a3b8.tar.gz linux-stable-45efc940678ec813f2e6bc4fc45f9f19e686a3b8.tar.bz2 linux-stable-45efc940678ec813f2e6bc4fc45f9f19e686a3b8.zip |
scsi: be2iscsi: Fix misc static analysis errors
The patch fixes errors reported by tools like smatch:
- removes unused structure fields
- removes dead code
- fixes code identation
Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_cmds.c')
-rw-r--r-- | drivers/scsi/be2iscsi/be_cmds.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.c b/drivers/scsi/be2iscsi/be_cmds.c index 04996665e608..7d633ddbc668 100644 --- a/drivers/scsi/be2iscsi/be_cmds.c +++ b/drivers/scsi/be2iscsi/be_cmds.c @@ -947,7 +947,6 @@ int beiscsi_cmd_q_destroy(struct be_ctrl_info *ctrl, struct be_queue_info *q, default: mutex_unlock(&ctrl->mbox_lock); BUG(); - return -ENXIO; } be_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req)); if (queue_type != QTYPE_SGL) |