* [PATCH] nfc/fdp: Simplify the return expression of fdp_nci_open()
@ 2021-03-18 13:36 zuoqilin1
2021-03-19 2:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: zuoqilin1 @ 2021-03-18 13:36 UTC (permalink / raw)
To: davem, dan.carpenter; +Cc: netdev, linux-kernel, zuoqilin
From: zuoqilin <zuoqilin@yulong.com>
Simplify the return expression.
Signed-off-by: zuoqilin <zuoqilin@yulong.com>
---
drivers/nfc/fdp/fdp.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c
index 4dc7bd7..824f2da 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)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] nfc/fdp: Simplify the return expression of fdp_nci_open()
2021-03-18 13:36 [PATCH] nfc/fdp: Simplify the return expression of fdp_nci_open() zuoqilin1
@ 2021-03-19 2:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-03-19 2:20 UTC (permalink / raw)
To: None; +Cc: davem, dan.carpenter, netdev, linux-kernel, zuoqilin
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Thu, 18 Mar 2021 21:36:40 +0800 you wrote:
> From: zuoqilin <zuoqilin@yulong.com>
>
> Simplify the return expression.
>
> Signed-off-by: zuoqilin <zuoqilin@yulong.com>
> ---
> drivers/nfc/fdp/fdp.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
Here is the summary with links:
- nfc/fdp: Simplify the return expression of fdp_nci_open()
https://git.kernel.org/netdev/net-next/c/92a310cdcf81
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-19 2:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18 13:36 [PATCH] nfc/fdp: Simplify the return expression of fdp_nci_open() zuoqilin1
2021-03-19 2:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®