]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: asix: ax88772: fix boolconv.cocci warnings
authorkernel test robot <lkp@intel.com>
Wed, 25 Aug 2021 18:35:38 +0000 (20:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Aug 2021 23:35:51 +0000 (16:35 -0700)
commitec92e524ee91c98e6ee06807c7d69d9e2fd141bc
tree70a5c8c160314fdabef7475dedb354a0280627d6
parentcd9b50adc6bb9ad3f7d244590a389522215865c4
net: usb: asix: ax88772: fix boolconv.cocci warnings

drivers/net/usb/asix_devices.c:757:60-65: WARNING: conversion to bool not needed here

 Remove unneeded conversion to bool

Semantic patch information:
 Relational and logical operators evaluate to bool,
 explicit conversion is overly verbose and unneeded.

Generated by: scripts/coccinelle/misc/boolconv.cocci

Fixes: 7a141e64cf14 ("net: usb: asix: ax88772: move embedded PHY detection as early as possible")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/20210825183538.13070-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/asix_devices.c