usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin
Subsystems (2)
PATCH v2 1/1 usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin
Currently the variable irqflags is being set but is not being used, it appears it should be used in the call to net2272_probe_fin rather than IRQF_TRIGGER_LOW being used. Kudos to Uwe Kleine-König for suggesting the fix.
Cleans up clang scan build warning:drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags' set but not used [-Wunused-but-set-variable]
---
V2: don't remove irqflags but instead use it in the call to net2272_probe_fin
--- drivers/usb/gadget/udc/net2272.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/gadget/udc/net2272.c +1 -1
@@ -2650,7 +2650,7 @@ net2272_plat_probe(struct platform_device *pdev) goto err_req; } - ret =net2272_probe_fin (dev,IRQF_TRIGGER_LOW ); + ret =net2272_probe_fin (dev, irqflags);if (ret) goto err_io;
Signature · 1 line
2.39.2
Quoted 5 lines · Colin Ian King
Currently the variable irqflags is being set but is not being used, it appears it should be used in the call to
net2272_probe_finrather thanIRQF_TRIGGER_LOWbeing used. Kudos to Uwe Kleine-König for suggesting the fix.
Quoted 7 lines
Cleans up clang scan build warning:
drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags' set but not used [-Wunused-but-set-variable]Fixes ceb80363b2ec ("USB: net2272: driver for PLX NET2272 USB device controller")Signed-off-by Colin Ian King <[email protected]>
Quoted 25 lines
---
V2: don't remove irqflags but instead use it in the call to
net2272_probe_fin--- drivers/usb/gadget/udc/net2272.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/gadget/udc/net2272.c +1
-1@@ -2650,7 +2650,7 @@ net2272_plat_probe(struct platform_device *pdev) goto err_req; } - ret =net2272_probe_fin (dev,IRQF_TRIGGER_LOW ); + ret =net2272_probe_fin (dev, irqflags);if (ret) goto err_io;Signature · 1 line
2.39.2
Hello,
Quoted 5 lines · Colin Ian King
Currently the variable irqflags is being set but is not being used, it appears it should be used in the call to
net2272_probe_finrather thanIRQF_TRIGGER_LOWbeing used. Kudos to Uwe Kleine-König for suggesting the fix.
Quoted 7 lines
Cleans up clang scan build warning:
drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags' set but not used [-Wunused-but-set-variable]Fixes ceb80363b2ec ("USB: net2272: driver for PLX NET2272 USB device controller")Signed-off-by Colin Ian King <[email protected]>
Best regards
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-König | Industrial Linux Solutions | https://www.pengutronix.de/ |