Commit 92a310cd authored by zuoqilin's avatar zuoqilin Committed by David S. Miller

nfc/fdp: Simplify the return expression of fdp_nci_open()

Simplify the return expression.
Signed-off-by: default avatarzuoqilin <zuoqilin@yulong.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a835f903
...@@ -236,15 +236,12 @@ static int fdp_nci_send_patch(struct nci_dev *ndev, u8 conn_id, u8 type) ...@@ -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) static int fdp_nci_open(struct nci_dev *ndev)
{ {
int r;
struct fdp_nci_info *info = nci_get_drvdata(ndev); struct fdp_nci_info *info = nci_get_drvdata(ndev);
struct device *dev = &info->phy->i2c_dev->dev; struct device *dev = &info->phy->i2c_dev->dev;
dev_dbg(dev, "%s\n", __func__); dev_dbg(dev, "%s\n", __func__);
r = info->phy_ops->enable(info->phy); return info->phy_ops->enable(info->phy);
return r;
} }
static int fdp_nci_close(struct nci_dev *ndev) static int fdp_nci_close(struct nci_dev *ndev)
......
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