mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
usb: gadget: Remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq() already prints an error. This was found by coccicheck: ./drivers/usb/gadget/udc/aspeed_udc.c:1546:2-9: line 1546 is redundant because platform_get_irq() already prints an error. Acked-by: Neal Liu <neal_liu@aspeedtech.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Link: https://lore.kernel.org/r/20220616090410.128483-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e2900f7466
commit
44830e11ae
@ -1542,7 +1542,6 @@ static int ast_udc_probe(struct platform_device *pdev)
|
||||
/* Find interrupt and install handler */
|
||||
udc->irq = platform_get_irq(pdev, 0);
|
||||
if (udc->irq < 0) {
|
||||
dev_err(&pdev->dev, "Failed to get interrupt\n");
|
||||
rc = udc->irq;
|
||||
goto err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user