summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2015-03-31 09:49:09 +0530
committerLinus Walleij <linus.walleij@linaro.org>2015-04-08 09:54:10 +0200
commit76a2dae0e69b0ee511c6d64ad5c37596e7356a93 (patch)
treea41ca540ac04ba227738546618b8579790a72e85 /drivers
parent7898b31ebafbf01d2ad56d251cfc9bfa4e5c644a (diff)
downloadop-kernel-dev-76a2dae0e69b0ee511c6d64ad5c37596e7356a93.zip
op-kernel-dev-76a2dae0e69b0ee511c6d64ad5c37596e7356a93.tar.gz
gpio: max7300: remove 'ret' variable
Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio-max7300.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-max7300.c b/drivers/gpio/gpio-max7300.c
index 40ab6df..0cc2c27 100644
--- a/drivers/gpio/gpio-max7300.c
+++ b/drivers/gpio/gpio-max7300.c
@@ -35,7 +35,6 @@ static int max7300_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct max7301 *ts;
- int ret;
if (!i2c_check_functionality(client->adapter,
I2C_FUNC_SMBUS_BYTE_DATA))
@@ -49,8 +48,7 @@ static int max7300_probe(struct i2c_client *client,
ts->write = max7300_i2c_write;
ts->dev = &client->dev;
- ret = __max730x_probe(ts);
- return ret;
+ return __max730x_probe(ts);
}
static int max7300_remove(struct i2c_client *client)
OpenPOWER on IntegriCloud