Skip to content
Commit 2b5e368e authored by Laurentiu Palcu's avatar Laurentiu Palcu Committed by Mark Brown
Browse files

spi/dln2: simplify return flow for dln2_spi_transfer_setup and dln2_spi_enable



This fixes the following kbuild test robot warnings:

>> drivers/spi/spi-dln2.c:124:1-4: WARNING: end returns can be simplified if negative or 0 value
>> drivers/spi/spi-dln2.c:656:1-4: WARNING: end returns can be simplified if negative or 0 value

Additionally, fix a comment after switching from CONFIG_PM_RUNTIME to
CONFIG_PM.

Reported-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarLaurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b2e5dda1
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