net/ieee802154: drop unneeded assignment in llsec_iter_devkeys()
authorYang Li <yang.lee@linux.alibaba.com>
Sun, 25 Apr 2021 10:24:59 +0000 (18:24 +0800)
committerStefan Schmidt <stefan@datenfreihafen.org>
Thu, 3 Jun 2021 08:09:36 +0000 (10:09 +0200)
commitad6f5cc5f6c261f881e44ecd750f17952df2b496
treeb6fb4081866621386801ef8a773d6c7dc6201ceb
parent9fdd04918a452980631ecc499317881c1d120b70
net/ieee802154: drop unneeded assignment in llsec_iter_devkeys()

In order to keep the code style consistency of the whole file,
redundant return value ‘rc’ and its assignments should be deleted

The clang_analyzer complains as follows:
net/ieee802154/nl-mac.c:1203:12: warning: Although the value stored to
'rc' is used in the enclosing expression, the value is never actually
read from 'rc'

No functional change, only more efficient.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1619346299-40237-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/ieee802154/nl-mac.c