Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: max7300: remove 'ret' variable

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Varka Bhadram and committed by
Linus Walleij
76a2dae0 7898b31e

+1 -3
+1 -3
drivers/gpio/gpio-max7300.c
··· 35 35 const struct i2c_device_id *id) 36 36 { 37 37 struct max7301 *ts; 38 - int ret; 39 38 40 39 if (!i2c_check_functionality(client->adapter, 41 40 I2C_FUNC_SMBUS_BYTE_DATA)) ··· 48 49 ts->write = max7300_i2c_write; 49 50 ts->dev = &client->dev; 50 51 51 - ret = __max730x_probe(ts); 52 - return ret; 52 + return __max730x_probe(ts); 53 53 } 54 54 55 55 static int max7300_remove(struct i2c_client *client)