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)
commit2dd6a24fff41fe8fbf307491ed637a18049b13ff
treeed7e283f681fae68db80dbab41b1c7d48ff2ba68
parent19a46799adf21f4b0a58d61ff90e6c51fd824129
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