From: Adheer Chandravanshi Date: Thu, 10 Apr 2014 01:12:28 +0000 (-0400) Subject: qla4xxx: Fix smatch warning in func qla4xxx_conn_get_param X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=971d6fff260f49cf79377a8afb8afab0d61e383b;p=linux-beck.git qla4xxx: Fix smatch warning in func qla4xxx_conn_get_param Signed-off-by: Vikas Chaudhary Reviewed-by: Mike Christie Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 592f29375a89..9eef7d41522f 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -2879,7 +2879,6 @@ static int qla4xxx_conn_get_param(struct iscsi_cls_conn *cls_conn, struct iscsi_conn *conn; struct qla_conn *qla_conn; struct sockaddr *dst_addr; - int len = 0; conn = cls_conn->dd_data; qla_conn = conn->dd_data; @@ -2893,9 +2892,6 @@ static int qla4xxx_conn_get_param(struct iscsi_cls_conn *cls_conn, default: return iscsi_conn_get_param(cls_conn, param, buf); } - - return len; - } int qla4xxx_get_ddb_index(struct scsi_qla_host *ha, uint16_t *ddb_index)