summaryrefslogtreecommitdiff
path: root/drivers/nfc
diff options
context:
space:
mode:
authorzuoqilin <zuoqilin@yulong.com>2021-03-18 16:36:40 +0300
committerDavid S. Miller <davem@davemloft.net>2021-03-19 05:13:42 +0300
commit92a310cdcf8120c2d007254f53b927c89c417fc6 (patch)
treeff6dea60a0d5e4374b5627321e4aff537f5d81e2 /drivers/nfc
parenta835f9034efbb699f307575bead2607c2fbc93ac (diff)
downloadlinux-92a310cdcf8120c2d007254f53b927c89c417fc6.tar.xz
nfc/fdp: Simplify the return expression of fdp_nci_open()
Simplify the return expression. Signed-off-by: zuoqilin <zuoqilin@yulong.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc')
-rw-r--r--drivers/nfc/fdp/fdp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c
index 4dc7bd7e02b6..824f2da137a6 100644
--- a/drivers/nfc/fdp/fdp.c
+++ b/drivers/nfc/fdp/fdp.c
@@ -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)