staging: net: wimax: i2400m: fw: remove redundant initialization of variable result
The variable result is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Signed-off-by: Colin Ian King <colin.king@canonical.com> Addresses-Coverity: ("Unused value") Link: https://lore.kernel.org/r/20210128173703.645328-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
27cf133c5d
commit
d730b1e1c3
@ -583,7 +583,7 @@ ssize_t i2400m_bm_cmd(struct i2400m *i2400m,
|
||||
struct i2400m_bootrom_header *ack, size_t ack_size,
|
||||
int flags)
|
||||
{
|
||||
ssize_t result = -ENOMEM, rx_bytes;
|
||||
ssize_t result, rx_bytes;
|
||||
struct device *dev = i2400m_dev(i2400m);
|
||||
int opcode = cmd == NULL ? -1 : i2400m_brh_get_opcode(cmd);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user