mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-27 00:04:47 +08:00
i3c: master: svc: Do not check for 0 return after calling platform_get_irq()
It is not possible for platform_get_irq() to return 0. Use the return value from platform_get_irq(). Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20230803085149.149248-1-ruanjinjie@huawei.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
cbf871e6d8
commit
3000986379
@ -1518,8 +1518,8 @@ static int svc_i3c_master_probe(struct platform_device *pdev)
|
||||
return PTR_ERR(master->sclk);
|
||||
|
||||
master->irq = platform_get_irq(pdev, 0);
|
||||
if (master->irq <= 0)
|
||||
return -ENOENT;
|
||||
if (master->irq < 0)
|
||||
return master->irq;
|
||||
|
||||
master->dev = dev;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user