]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: mvebu: return NULL instead of ERR_PTR(ret)
authorJingoo Han <jg1.han@samsung.com>
Tue, 15 Oct 2013 09:12:07 +0000 (18:12 +0900)
committerJason Cooper <jason@lakedaemon.net>
Thu, 17 Oct 2013 13:03:54 +0000 (13:03 +0000)
commitdbbe1efd61e3223b6b53a1db14956b3ea91c3e9f
treeb8068581e5615c18824c4c78b9dfc7d77589f854
parentf5072dfbac053200c8865c4fb15e4f020b7b5d1d
PCI: mvebu: return NULL instead of ERR_PTR(ret)

Return NULL instead of ERR_PTR(ret) in order to fix the following
sparse warning:

drivers/pci/host/pci-mvebu.c:744:31: warning: incorrect type in return expression (different address
spaces)
drivers/pci/host/pci-mvebu.c:744:31:    expected void [noderef] <asn:2>*
drivers/pci/host/pci-mvebu.c:744:31:    got void *

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/pci/host/pci-mvebu.c