]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: use min() macro instead of doing it manually
authorYang Li <yang.lee@linux.alibaba.com>
Tue, 21 Dec 2021 01:14:55 +0000 (09:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Dec 2021 10:16:47 +0000 (10:16 +0000)
commit43222e1527f8a5a76ea254e425a8870248e59264
tree523555363e7224ea25eceecada36a86c52de1e7d
parentb4c8cf4be452534dec4058646be6864d2d511c8e
net/sched: use min() macro instead of doing it manually

Fix following coccicheck warnings:
./net/sched/cls_api.c:3333:17-18: WARNING opportunity for min()
./net/sched/cls_api.c:3389:17-18: WARNING opportunity for min()
./net/sched/cls_api.c:3427:17-18: WARNING opportunity for min()

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c