Commit 666eb96d authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

qlcnic: Remove redundant initialization of variable ret



The variable ret is being initialized with a value that is never read, it
is being updated later on. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 20e100f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1354,10 +1354,10 @@ static int qlcnic_83xx_copy_fw_file(struct qlcnic_adapter *adapter)
	struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info;
	const struct firmware *fw = fw_info->fw;
	u32 dest, *p_cache, *temp;
	int i, ret = -EIO;
	__le32 *temp_le;
	u8 data[16];
	size_t size;
	int i, ret;
	u64 addr;

	temp = vzalloc(fw->size);