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

Commit 7657e064 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab
Browse files

[media] adv7180: Remove the unneeded 'err' label



There is no need to jump to the 'err' label as we can simply return the error
code directly and make the code shorter.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 88ca3af4
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -616,10 +616,8 @@ static int adv7180_probe(struct i2c_client *client,
		 client->addr, client->adapter->name);

	state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL);
	if (state == NULL) {
		ret = -ENOMEM;
		goto err;
	}
	if (state == NULL)
		return -ENOMEM;

	state->irq = client->irq;
	mutex_init(&state->mutex);
@@ -649,7 +647,6 @@ static int adv7180_probe(struct i2c_client *client,
	adv7180_exit_controls(state);
err_unreg_subdev:
	mutex_destroy(&state->mutex);
err:
	return ret;
}