soundwire: Fix incorrect return value check
pm_runtime_get_sync will return negative values for error and 0 or 1 for success. Update the error check accordingly. Signed-off-by: NShreyas NC <shreyas.nc@intel.com> Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Fixes: 9d715fa0: ("soundwire: Add IO transfer") Signed-off-by: NVinod Koul <vinod.koul@intel.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录