linux_dsm_epyc7002/drivers/infiniband/ulp
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
..
ipoib RDMA: Add and use rdma_for_each_port 2019-02-19 10:13:39 -07:00
iser IB/iser: remove uninitialized variable len 2019-03-27 10:20:33 -03:00
isert SCSI misc on 20190306 2019-03-09 16:53:47 -08:00
opa_vnic RDMA: Mark if destroy address handle is in a sleepable context 2018-12-19 16:28:03 -07:00
srp 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
srpt SCSI misc on 20190306 2019-03-09 16:53:47 -08:00
Makefile