]> www.infradead.org Git - users/jedix/linux-maple.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>
Tue, 4 Dec 2012 17:32:56 +0000 (12:32 -0500)
commit92c62a53c89766268f2865f3b2f233e2cbe19684
tree1b87b76fa5ee7c9e70af54f3b0a805aa3380c535
parent928a227dc83993d6349397135de496e9117657e8
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>
(cherry picked from commit c468bdee28a1cb61d9b7a8ce9859d17dee43b7d7)
drivers/xen/swiotlb-xen.c