nvme-pci: always return an ERR_PTR from nvme_pci_alloc_dev
Don't mix NULL and ERR_PTR returns. Fixes: 2e87570b ("nvme-pci: factor out a nvme_pci_alloc_dev helper") Signed-off-by: NIrvin Cote <irvin.cote@insa-lyon.fr> Reviewed-by: NKeith Busch <kbusch@kernel.org> Signed-off-by: NChristoph Hellwig <hch@lst.de>
Showing
想要评论请 注册 或 登录