diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-03-29 14:23:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-30 02:23:08 +0300 |
commit | 24ad92c841c9fa548dc944821721944405ef7963 (patch) | |
tree | 6fb4b3a2c0094cf5b5e965631128bd0b01a48eea | |
parent | 87f2c6716f6408b9992d7f2247d1fcc190de2c92 (diff) | |
download | linux-24ad92c841c9fa548dc944821721944405ef7963.tar.xz |
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>
-rw-r--r-- | drivers/net/ieee802154/mac802154_hwsim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ieee802154/mac802154_hwsim.c b/drivers/net/ieee802154/mac802154_hwsim.c index c0bf7d78276e..da9135231c07 100644 --- a/drivers/net/ieee802154/mac802154_hwsim.c +++ b/drivers/net/ieee802154/mac802154_hwsim.c @@ -268,7 +268,7 @@ static int hwsim_get_radio(struct sk_buff *skb, struct hwsim_phy *phy, struct netlink_callback *cb, int flags) { void *hdr; - int res = -EMSGSIZE; + int res; hdr = genlmsg_put(skb, portid, seq, &hwsim_genl_family, flags, MAC802154_HWSIM_CMD_GET_RADIO); |