]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: hwsim: remove redundant initialization of variable res
authorColin Ian King <colin.king@canonical.com>
Mon, 29 Mar 2021 11:23:54 +0000 (12:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 23:23:08 +0000 (16:23 -0700)
commitd976963a420e9e253c7ebd6751cae7a8276bccf2
tree6fb4b3a2c0094cf5b5e965631128bd0b01a48eea
parentb9a27a29ca047cef0a740acee52a33e7de49bfd4
ieee802154: hwsim: remove redundant initialization of variable res

The variable res 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.

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/ieee802154/mac802154_hwsim.c