[ Upstream commit 4745ea2628bb43a7ec34b71763b5a56407b33990 ]
Return NULL instead of passing to ERR_PTR while err is zero,
this fix smatch warnings:
drivers/xen/xen-pciback/conf_space_capability.c:163
pm_ctrl_init() warn: passing zero to 'ERR_PTR'
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| conf_space.c | ||
| conf_space.h | ||
| conf_space_capability.c | ||
| conf_space_header.c | ||
| conf_space_quirks.c | ||
| conf_space_quirks.h | ||
| passthrough.c | ||
| pci_stub.c | ||
| pciback.h | ||
| pciback_ops.c | ||
| vpci.c | ||
| xenbus.c | ||