Re: [PATCH -next] usb: gadget: xudc: Remove redundant platform_get_irq error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Nagarjuna Kristam <nkristam@xxxxxxxxxx>

On 16-01-2020 19:44, YueHaibing wrote:
External email: Use caution opening links or attachments


platform_get_irq() will call dev_err() itself on failure,
so there is no need for the driver to also do this.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
  drivers/usb/gadget/udc/tegra-xudc.c | 5 +----
  1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c
index 634c2c1..fc1eafc 100644
--- a/drivers/usb/gadget/udc/tegra-xudc.c
+++ b/drivers/usb/gadget/udc/tegra-xudc.c
@@ -3492,11 +3492,8 @@ static int tegra_xudc_probe(struct platform_device *pdev)
         }

         xudc->irq = platform_get_irq(pdev, 0);
-       if (xudc->irq < 0) {
-               dev_err(xudc->dev, "failed to get IRQ: %d\n",
-                               xudc->irq);
+       if (xudc->irq < 0)
                 return xudc->irq;
-       }

         err = devm_request_irq(&pdev->dev, xudc->irq, tegra_xudc_irq, 0,
                                dev_name(&pdev->dev), xudc);
--
2.7.4





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux