]> git.baikalelectronics.ru Git - kernel.git/commit
xen/swiotlb: For early initialization, return zero on success.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 17 Sep 2012 14:20:09 +0000 (10:20 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 17 Sep 2012 17:00:41 +0000 (13:00 -0400)
commitaeb767ab2eee06c68e6bb29ecdfcb5704875d1b7
tree92402ff7a4338dbf7227f8f50c9898c30416e62a
parent51afb8af980301e77d1860eed930604f06b708fb
xen/swiotlb: For early initialization, return zero on success.

If everything is setup properly we would return -ENOMEM since
rc by default is set to that value. Lets not do that and return
a proper return code.

Note: The reason the early code needs this special treatment
is that it SWIOTLB library call does not return anything (and
had it failed it would call panic()) - but our function does.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c