diff options
author | YueHaibing <yuehaibing@huawei.com> | 2021-10-08 15:44:17 +0800 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2021-11-02 07:45:44 -0500 |
commit | 4745ea2628bb43a7ec34b71763b5a56407b33990 (patch) | |
tree | 1e3c9c436d8e884058805ca79950a478fc30be89 /drivers/pwm/pwm-stm32-lp.c | |
parent | 9a58b352e9e8a8c897acf6aae5cacd7d481965f9 (diff) |
xen-pciback: Fix return in pm_ctrl_init()
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: a92336a1176b ("xen/pciback: Drop two backends, squash and cleanup some code.")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20211008074417.8260-1-yuehaibing@huawei.com
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/pwm/pwm-stm32-lp.c')
0 files changed, 0 insertions, 0 deletions