Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76a2dae0 authored by Varka Bhadram's avatar Varka Bhadram Committed by Linus Walleij
Browse files

gpio: max7300: remove 'ret' variable

parent 7898b31e
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -35,7 +35,6 @@ static int max7300_probe(struct i2c_client *client,
			 const struct i2c_device_id *id)
			 const struct i2c_device_id *id)
{
{
	struct max7301 *ts;
	struct max7301 *ts;
	int ret;


	if (!i2c_check_functionality(client->adapter,
	if (!i2c_check_functionality(client->adapter,
			I2C_FUNC_SMBUS_BYTE_DATA))
			I2C_FUNC_SMBUS_BYTE_DATA))
@@ -49,8 +48,7 @@ static int max7300_probe(struct i2c_client *client,
	ts->write = max7300_i2c_write;
	ts->write = max7300_i2c_write;
	ts->dev = &client->dev;
	ts->dev = &client->dev;


	ret = __max730x_probe(ts);
	return __max730x_probe(ts);
	return ret;
}
}


static int max7300_remove(struct i2c_client *client)
static int max7300_remove(struct i2c_client *client)