Commit 8eec4555 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 17afd17b
...@@ -168,9 +168,9 @@ static int xilly_probe(struct pci_dev *pdev, ...@@ -168,9 +168,9 @@ static int xilly_probe(struct pci_dev *pdev,
} }
endpoint->registers = pci_iomap(pdev, 0, 128); endpoint->registers = pci_iomap(pdev, 0, 128);
if (!endpoint->registers) { if (!endpoint->registers) {
dev_err(endpoint->dev, "Failed to map BAR 0. Aborting.\n"); dev_err(endpoint->dev, "Failed to map BAR 0. Aborting.\n");
rc = -EIO;
goto failed_iomap0; goto failed_iomap0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment