]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: 6lowpan: remove unnecessary comparison
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 8 May 2020 03:52:08 +0000 (11:52 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 05:25:10 +0000 (22:25 -0700)
commite56bad21fb3f5c03ed90b1e2081b42cb6581e6fc
tree1d7301a29a788a1f0d0a508afcb5236e8650fd2b
parent0f0104ab56dfbf69c7856e29179692eb40ae0af4
ieee802154: 6lowpan: remove unnecessary comparison

The type of dispatch is u8 which is always '<=' 0xff, so the
dispatch <= 0xff is always true, we can remove this comparison.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ieee802154/6lowpan/rx.c