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

[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
...@@ -616,10 +616,8 @@ static int adv7180_probe(struct i2c_client *client, ...@@ -616,10 +616,8 @@ static int adv7180_probe(struct i2c_client *client,
client->addr, client->adapter->name); client->addr, client->adapter->name);
state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL); state = devm_kzalloc(&client->dev, sizeof(*state), GFP_KERNEL);
if (state == NULL) { if (state == NULL)
ret = -ENOMEM; return -ENOMEM;
goto err;
}
state->irq = client->irq; state->irq = client->irq;
mutex_init(&state->mutex); mutex_init(&state->mutex);
...@@ -649,7 +647,6 @@ static int adv7180_probe(struct i2c_client *client, ...@@ -649,7 +647,6 @@ static int adv7180_probe(struct i2c_client *client,
adv7180_exit_controls(state); adv7180_exit_controls(state);
err_unreg_subdev: err_unreg_subdev:
mutex_destroy(&state->mutex); mutex_destroy(&state->mutex);
err:
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment