Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
David S. Miller
666eb96d 20e100f5

+1 -1
+1 -1
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
··· 1354 1354 struct qlc_83xx_fw_info *fw_info = adapter->ahw->fw_info; 1355 1355 const struct firmware *fw = fw_info->fw; 1356 1356 u32 dest, *p_cache, *temp; 1357 - int i, ret = -EIO; 1358 1357 __le32 *temp_le; 1359 1358 u8 data[16]; 1360 1359 size_t size; 1360 + int i, ret; 1361 1361 u64 addr; 1362 1362 1363 1363 temp = vzalloc(fw->size);