]> git.baikalelectronics.ru Git - kernel.git/commit
wimax: remove some redundant assignments to variable result
authorColin Ian King <colin.king@canonical.com>
Sun, 5 Apr 2020 12:06:02 +0000 (13:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Apr 2020 17:20:03 +0000 (10:20 -0700)
commitb142ad7b90a6fa0e4c1d37ef248028cfd3a1a39a
treeed7e283f681fae68db80dbab41b1c7d48ff2ba68
parent981fcb8517dc3f0c2d6028623573e3bc74efbd15
wimax: remove some redundant assignments to variable result

In function i2400m_bm_buf_alloc there is no need to use a variable
'result' to return -ENOMEM, just return the literal value. In the
function i2400m_setup the variable 'result' is initialized with a
value that is never read, it is a redundant assignment that 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/wimax/i2400m/driver.c