xen-platform: fix error return code in platform_pci_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 7 Jan 2014 13:11:05 +0000 (21:11 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 7 Jan 2014 14:59:51 +0000 (09:59 -0500)
commit89b9e08f186a203c250872a663c9eab09cdc583a
tree6d8ab4c1fd8e6dd3d44af77dbabfc88ad6724828
parent5602aba808aa5440e4b8fa4340079cb2047651ee
xen-platform: fix error return code in platform_pci_init()

Fix to return a negative error code from the error handling
case instead of 0, otherwise the error condition cann't be
reflected from the return value.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/platform-pci.c