]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
qla4xxx: Fix smatch warning in func qla4xxx_conn_get_param
authorAdheer Chandravanshi <adheer.chandravanshi@qlogic.com>
Thu, 10 Apr 2014 01:12:28 +0000 (21:12 -0400)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 17:12:21 +0000 (19:12 +0200)
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla4xxx/ql4_os.c

index 592f29375a89e460987d4028c19e6e95661d864f..9eef7d41522f198295e66a891fcfd599a3f211f6 100644 (file)
@@ -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)