Skip to content

Commit 6005568

Browse files
ColinIanKinggregkh
authored andcommitted
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] Fixes: ceb8036 ("USB: net2272: driver for PLX NET2272 USB device controller") Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20240307181734.2034407-1-colin.i.king@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 84fa943 commit 6005568

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/gadget/udc/net2272.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2650,7 +2650,7 @@ net2272_plat_probe(struct platform_device *pdev)
26502650
goto err_req;
26512651
}
26522652

2653-
ret = net2272_probe_fin(dev, IRQF_TRIGGER_LOW);
2653+
ret = net2272_probe_fin(dev, irqflags);
26542654
if (ret)
26552655
goto err_io;
26562656

0 commit comments

Comments
 (0)