Commit c22c0ae5 authored by Shreyas NC's avatar Shreyas NC Committed by Greg Kroah-Hartman
Browse files

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: default avatarShreyas NC <shreyas.nc@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: 9d715fa0

: ("soundwire: Add IO transfer")
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba60eb19
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment