aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2023-01-14 10:57:36 -0800
committerMark Brown <[email protected]>2023-01-18 14:55:43 +0000
commit2bbba115c3c9a647bcb3201b014fcc3728fe75c8 (patch)
tree9d1dd183bf79f4934cc4ecc4aaed0fe3cd19bb81 /drivers/usb/cdns3/cdns3-debug.h
parent84c13763f2a22acc31472dccde8b6130b8f2e9c2 (diff)
regulator: tps65219: use IS_ERR() to detect an error pointer
Fix pointer comparison to integer warning from gcc & sparse: GCC: ../drivers/regulator/tps65219-regulator.c:370:26: warning: ordered comparison of pointer with integer zero [-Wextra] 370 | if (rdev < 0) { | ^ sparse warning: drivers/regulator/tps65219-regulator.c:370:26: sparse: error: incompatible types for operation (<): drivers/regulator/tps65219-regulator.c:370:26: sparse: struct regulator_dev *[assigned] rdev drivers/regulator/tps65219-regulator.c:370:26: sparse: int Fixes: c12ac5fc3e0a ("regulator: drivers: Add TI TPS65219 PMIC regulators support") Signed-off-by: Randy Dunlap <[email protected]> Cc: Jerome Neanne <[email protected]> Cc: Tony Lindgren <[email protected]> Cc: [email protected] Cc: Liam Girdwood <[email protected]> Cc: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions