Commit c13ad4cf authored by Changcheng Deng's avatar Changcheng Deng Committed by Martin K. Petersen

scsi: qla4xxx: Remove unneeded variable

Remove unneeded variable used to store return value.

Link: https://lore.kernel.org/r/20220224090735.1967816-1-deng.changcheng@zte.com.cnReported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarChangcheng Deng <deng.changcheng@zte.com.cn>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent cc8294ec
...@@ -3640,7 +3640,6 @@ static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess, ...@@ -3640,7 +3640,6 @@ static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess,
struct dev_db_entry *fw_ddb_entry) struct dev_db_entry *fw_ddb_entry)
{ {
uint16_t options; uint16_t options;
int rc = 0;
options = le16_to_cpu(fw_ddb_entry->options); options = le16_to_cpu(fw_ddb_entry->options);
SET_BITVAL(conn->is_fw_assigned_ipv6, options, BIT_11); SET_BITVAL(conn->is_fw_assigned_ipv6, options, BIT_11);
...@@ -3739,7 +3738,7 @@ static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess, ...@@ -3739,7 +3738,7 @@ static int qla4xxx_copy_to_fwddb_param(struct iscsi_bus_flash_session *sess,
COPY_ISID(fw_ddb_entry->isid, sess->isid); COPY_ISID(fw_ddb_entry->isid, sess->isid);
return rc; return 0;
} }
static void qla4xxx_copy_to_sess_conn_params(struct iscsi_conn *conn, static void qla4xxx_copy_to_sess_conn_params(struct iscsi_conn *conn,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment