Commit 4f1cbf24 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by David S. Miller

NFC: nxp-nci: Get rid of useless label

Return directly in ->probe() since there no special cleaning is needed.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ad0acfd6
...@@ -265,16 +265,13 @@ static int nxp_nci_i2c_probe(struct i2c_client *client, ...@@ -265,16 +265,13 @@ static int nxp_nci_i2c_probe(struct i2c_client *client,
if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {
nfc_err(&client->dev, "Need I2C_FUNC_I2C\n"); nfc_err(&client->dev, "Need I2C_FUNC_I2C\n");
r = -ENODEV; return -ENODEV;
goto probe_exit;
} }
phy = devm_kzalloc(&client->dev, sizeof(struct nxp_nci_i2c_phy), phy = devm_kzalloc(&client->dev, sizeof(struct nxp_nci_i2c_phy),
GFP_KERNEL); GFP_KERNEL);
if (!phy) { if (!phy)
r = -ENOMEM; return -ENOMEM;
goto probe_exit;
}
phy->i2c_dev = client; phy->i2c_dev = client;
i2c_set_clientdata(client, phy); i2c_set_clientdata(client, phy);
...@@ -298,7 +295,7 @@ static int nxp_nci_i2c_probe(struct i2c_client *client, ...@@ -298,7 +295,7 @@ static int nxp_nci_i2c_probe(struct i2c_client *client,
r = nxp_nci_probe(phy, &client->dev, &i2c_phy_ops, r = nxp_nci_probe(phy, &client->dev, &i2c_phy_ops,
NXP_NCI_I2C_MAX_PAYLOAD, &phy->ndev); NXP_NCI_I2C_MAX_PAYLOAD, &phy->ndev);
if (r < 0) if (r < 0)
goto probe_exit; return r;
r = request_threaded_irq(client->irq, NULL, r = request_threaded_irq(client->irq, NULL,
nxp_nci_i2c_irq_thread_fn, nxp_nci_i2c_irq_thread_fn,
...@@ -307,7 +304,6 @@ static int nxp_nci_i2c_probe(struct i2c_client *client, ...@@ -307,7 +304,6 @@ static int nxp_nci_i2c_probe(struct i2c_client *client,
if (r < 0) if (r < 0)
nfc_err(&client->dev, "Unable to register IRQ handler\n"); nfc_err(&client->dev, "Unable to register IRQ handler\n");
probe_exit:
return r; return r;
} }
......
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