summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-12-22 21:31:45 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-01-08 21:36:51 +0100
commitbf91b35a46ceef08a1e64c54b0e611fcae531e7a (patch)
tree372ab0687aae146b31210c74d1330eaf3ea21008 /include
parent6401e43479a809b7a5a930d76c363f4b5705ed00 (diff)
scsi: ufs: core: Discard pm_runtime_put() return values
The ufshcd driver defines ufshcd_rpm_put() to return an int, but that return value is never used. It also passes the return value of pm_runtime_put() to the caller which is not very useful. Returning an error code from pm_runtime_put() merely means that it has not queued up a work item to check whether or not the device can be suspended and there are many perfectly valid situations in which that can happen, like after writing "on" to the devices' runtime PM "control" attribute in sysfs for one example. Modify ufshcd_rpm_put() to discard the pm_runtime_put() return value and change its return type to void. No intentional functional impact. This will facilitate a planned change of the pm_runtime_put() return type to void in the future. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://patch.msgid.link/2781685.BddDVKsqQX@rafael.j.wysocki
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions