[PATCH] PCI: xilinx: Fix return value in case of error
Sören Brinkmann
soren.brinkmann at xilinx.com
Thu Jul 14 06:12:49 PDT 2016
On Thu, 2016-07-14 at 12:10:46 +0200, Christophe JAILLET wrote:
> In function 'xilinx_pcie_init_irq_domain', the pattern used to check and
> return error is:
>
> if (!var) {
> dev_err(...);
> return PTR_ERR(var);
> }
>
> So the returned value in case of error is always 0, which means 'success'.
> Change it to return -ENODEV instead.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
Acked-by: Sören Brinkmann <soren.brinkmann at xilinx.com>
Sören
More information about the linux-arm-kernel
mailing list