Skip to content

Commit

Permalink
nfc/fdp: Simplify the return expression of fdp_nci_open()
Browse files Browse the repository at this point in the history
Simplify the return expression.

Signed-off-by: zuoqilin <zuoqilin@yulong.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
zuoqilin authored and David S. Miller committed Mar 19, 2021
1 parent a835f90 commit 92a310c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/nfc/fdp/fdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,12 @@ static int fdp_nci_send_patch(struct nci_dev *ndev, u8 conn_id, u8 type)

static int fdp_nci_open(struct nci_dev *ndev)
{
int r;
struct fdp_nci_info *info = nci_get_drvdata(ndev);
struct device *dev = &info->phy->i2c_dev->dev;

dev_dbg(dev, "%s\n", __func__);

r = info->phy_ops->enable(info->phy);

return r;
return info->phy_ops->enable(info->phy);
}

static int fdp_nci_close(struct nci_dev *ndev)
Expand Down

0 comments on commit 92a310c

Please sign in to comment.