projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7898b31
)
gpio: max7300: remove 'ret' variable
author
Varka Bhadram
<varkabhadram@gmail.com>
Tue, 31 Mar 2015 04:19:09 +0000
(09:49 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 8 Apr 2015 07:54:10 +0000
(09:54 +0200)
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-max7300.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-max7300.c
b/drivers/gpio/gpio-max7300.c
index 40ab6dfb6021be9f82f12e34b5cf048ef6ee72a1..0cc2c279ab5cab21770ef9c863db030f74c06fb9 100644
(file)
--- 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)