Skip to content

Commit

Permalink
nfc: pn533: drop unneeded braces {} in if
Browse files Browse the repository at this point in the history
{} braces are not needed over single if-statement.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210531073902.7111-3-krzysztof.kozlowski@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Krzysztof Kozlowski authored and Jakub Kicinski committed Jun 1, 2021
1 parent 62f6441 commit feab6ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/nfc/pn533/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@ static int pn533_i2c_probe(struct i2c_client *client,
phy, &i2c_phy_ops, NULL,
&phy->i2c_dev->dev);

if (IS_ERR(priv)) {
if (IS_ERR(priv))
return PTR_ERR(priv);
}

phy->priv = priv;
r = pn532_i2c_nfc_alloc(priv, PN533_NO_TYPE_B_PROTOCOLS, &client->dev);
Expand Down

0 comments on commit feab6ba

Please sign in to comment.