]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: idt82p33: remove unnecessary comparison
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 24 Apr 2020 08:03:48 +0000 (16:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Apr 2020 23:59:21 +0000 (16:59 -0700)
commit6f7bea6017e134564db49caecc81472ea52b3702
tree37bc88123a2c0841552559f92e22afb4171a29e7
parent973e190f21fd0f20524821d91ac08da2237c87f7
ptp: idt82p33: remove unnecessary comparison

The type of loaddr is u8 which is always '<=' 0xff, so the
loaddr <= 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: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_idt82p33.c