mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
usb: dwc3: google: Remove redundant dev_err()
The platform_get_irq_byname() function already prints an error message internally upon failure using dev_err_probe(). Therefore, the explicit dev_err() is redundant and results in duplicate error logs. Remove the redundant dev_err() call to clean up the error path. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://patch.msgid.link/20260115023800.4142416-1-nichen@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ef548189fd
commit
4298475dee
1 changed files with 1 additions and 3 deletions
|
|
@ -228,10 +228,8 @@ static int dwc3_google_request_irq(struct dwc3_google *google, struct platform_d
|
|||
int irq;
|
||||
|
||||
irq = platform_get_irq_byname(pdev, irq_name);
|
||||
if (irq < 0) {
|
||||
dev_err(google->dev, "invalid irq name %s\n", irq_name);
|
||||
if (irq < 0)
|
||||
return irq;
|
||||
}
|
||||
|
||||
irq_set_status_flags(irq, IRQ_NOAUTOEN);
|
||||
ret = devm_request_threaded_irq(google->dev, irq, NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue