]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ieee802154: remove unused variable 'val'
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Mar 2018 14:40:19 +0000 (14:40 +0000)
committerStefan Schmidt <stefan@osg.samsung.com>
Fri, 2 Mar 2018 10:09:39 +0000 (11:09 +0100)
commit8fd4bc8a15b218165c45f44eba1b33a3c7181dfb
tree29104f28c75bdd4493427b09659ddf47d7b58d87
parent23e19fd4fb07eebf96909a86b8545bc4aa682e54
ieee802154: remove unused variable 'val'

Variable 'val' is not being initialized and is later being logically
or'd with DAR_PHY_CTRL4_PROMISCUOUS. Considering this variable is never
being read anyway we may as well remove val altogether.

Cleans up error detected by cppcheck:
drivers/net/ieee802154/mcr20a.c:732: (error) Uninitialized variable: val

Fixes: 8c6ad9cc5157 ("ieee802154: Add NXP MCR20A IEEE 802.15.4 transceiver driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
drivers/net/ieee802154/mcr20a.c