spi/dln2: simplify return flow for dln2_spi_transfer_setup and dln2_spi_enable
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Tue, 6 Jan 2015 13:23:40 +0000 (15:23 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 6 Jan 2015 17:02:50 +0000 (17:02 +0000)
commit2b5e368e4195749e50188dca4394ac8d25ff39f2
tree131113babf703e5e08ddba28e50d72167ec16417
parentb2e5dda14fbc2ca1155c614c500c6de6f5b4ba8c
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: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dln2.c
This page took 0.024204 seconds and 5 git commands to generate.