Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: sh: Discard pm_runtime_put() return value

Clobbering an error value to be returned from shdma_tx_submit() with
a pm_runtime_put() return value is not particularly useful, especially
if the latter is 0, so stop doing that.

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>
Link: https://patch.msgid.link/9626129.rMLUfLXkoz@rafael.j.wysocki
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Rafael J. Wysocki and committed by
Vinod Koul
b442377c de4761fb

+1 -1
+1 -1
drivers/dma/sh/shdma-base.c
··· 143 143 } 144 144 145 145 schan->pm_state = SHDMA_PM_ESTABLISHED; 146 - ret = pm_runtime_put(schan->dev); 146 + pm_runtime_put(schan->dev); 147 147 148 148 spin_unlock_irq(&schan->chan_lock); 149 149 return ret;