staging: xillybus: fix error return code in xilly_probe()
Fix to return negative error code -EIO from the error handling case instead of 0. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
17afd17bdd
Коммит
8eec455551
|
@ -168,9 +168,9 @@ static int xilly_probe(struct pci_dev *pdev,
|
|||
}
|
||||
|
||||
endpoint->registers = pci_iomap(pdev, 0, 128);
|
||||
|
||||
if (!endpoint->registers) {
|
||||
dev_err(endpoint->dev, "Failed to map BAR 0. Aborting.\n");
|
||||
rc = -EIO;
|
||||
goto failed_iomap0;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче