diff mbox series

usb: dwc3: host: remove dead code in dwc3_host_get_irq()

Message ID 20230323054232.1135734-1-mx_xiang@hust.edu.cn
State New
Headers show
Series usb: dwc3: host: remove dead code in dwc3_host_get_irq() | expand

Commit Message

Mingxuan Xiang March 23, 2023, 5:42 a.m. UTC
platform_get_irq() no longer returns 0, so there is no
need to check whether the return value is 0.

Signed-off-by: Mingxuan Xiang <mx_xiang@hust.edu.cn>
---
 drivers/usb/dwc3/host.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c
index f6f13e7f1ba1..aa19c27344e6 100644
--- a/drivers/usb/dwc3/host.c
+++ b/drivers/usb/dwc3/host.c
@@ -57,9 +57,6 @@  static int dwc3_host_get_irq(struct dwc3 *dwc)
 		goto out;
 	}
 
-	if (!irq)
-		irq = -EINVAL;
-
 out:
 	return irq;
 }