summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-05-09 12:57:19 -0300
committerMark Brown <broonie@kernel.org>2015-05-11 16:14:57 +0100
commit99472cc08a8bda2c56bceec3693193cc87a33ef1 (patch)
treef38671365dd96f062c2d34d4a0c81caa20e1bf55 /drivers/spi
parent98d6f479580013b42d179c30ff39107b6728ed82 (diff)
downloadop-kernel-dev-99472cc08a8bda2c56bceec3693193cc87a33ef1.zip
op-kernel-dev-99472cc08a8bda2c56bceec3693193cc87a33ef1.tar.gz
spi: spidev: Remove unneeded variable
Remove unneeded variable used to store return value. The semantic patch that makes this change is available in scripts/coccinelle/misc/returnvar.cocci. More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spidev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index eb0a075..dba7b462 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -616,7 +616,6 @@ err_find_dev:
static int spidev_release(struct inode *inode, struct file *filp)
{
struct spidev_data *spidev;
- int status = 0;
mutex_lock(&device_list_lock);
spidev = filp->private_data;
@@ -645,7 +644,7 @@ static int spidev_release(struct inode *inode, struct file *filp)
}
mutex_unlock(&device_list_lock);
- return status;
+ return 0;
}
static const struct file_operations spidev_fops = {
OpenPOWER on IntegriCloud