linux/drivers/infiniband/ulp/iser
Colin Ian King 9513ea4f67 IB/iser: remove uninitialized variable len
The variable len is not being inintialized and the uninitialized value is
being returned. However, this return path is never reached because the
default case in the switch statement returns -ENOSYS.  Clean up the code
by replacing the return -ENOSYS with a break for the default case and
returning -ENOSYS at the end of the function.  This allows len to be
removed.  Also remove redundant break that follows a return statement.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-03-27 10:20:33 -03:00
..
Kconfig drivers: infiniband: Fix whitespace in kconfig 2019-03-26 12:49:33 -03:00
Makefile IB/iser: iSER Kconfig and Makefile 2006-06-22 07:51:14 -07:00
iscsi_iser.c IB/iser: remove uninitialized variable len 2019-03-27 10:20:33 -03:00
iscsi_iser.h RDMA: Use __packed annotation instead of __attribute__ ((packed)) 2019-03-25 21:14:12 -03:00
iser_initiator.c IB/iser: Fix possible NULL deref at iser_inv_desc() 2018-09-28 09:53:49 -06:00
iser_memory.c IB/core: Remove ib_sg_dma_address() and ib_sg_dma_len() 2019-02-04 14:34:07 -07:00
iser_verbs.c iser: set sector for ambiguous mr status errors 2018-11-21 16:03:43 -07:00