Re: [PATCH net-next] ieee802154: 6lowpan: remove unnecessary comparison

2020-05-08 Thread Jakub Kicinski
On Fri, 8 May 2020 17:09:43 +0200 Stefan Schmidt wrote: >On 08.05.20 05:52, Yang Yingliang wrote: > > 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 > > Signed-off-by: Yang Yingliang

Re: [PATCH net-next] ieee802154: 6lowpan: remove unnecessary comparison

2020-05-08 Thread Stefan Schmidt
Hello. On 08.05.20 05:52, Yang Yingliang wrote: 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 Signed-off-by: Yang Yingliang --- net/ieee802154/6lowpan/rx.c | 2 +- 1 file changed, 1 inser

[PATCH net-next] ieee802154: 6lowpan: remove unnecessary comparison

2020-05-07 Thread Yang Yingliang
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 Signed-off-by: Yang Yingliang --- net/ieee802154/6lowpan/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ieee802154/6