]> git.baikalelectronics.ru Git - kernel.git/commitdiff
qlcnic: Remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Fri, 10 Sep 2021 11:15:11 +0000 (12:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Sep 2021 13:42:31 +0000 (14:42 +0100)
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>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c

index 0a2f34fc8b24a1d9e71ac16c7efd0c211223cdc9..27dffa299ca6f45dac1dcc6851e0378046334bff 100644 (file)
@@ -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);