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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
20e100f527
commit
666eb96d85
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user