* [PATCH] NFC: Remove repeated code for NULL check
@ 2012-08-15 19:25 Syam Sidhardhan
2012-08-17 22:02 ` Samuel Ortiz
0 siblings, 1 reply; 2+ messages in thread
From: Syam Sidhardhan @ 2012-08-15 19:25 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, lauro.venancio, aloisio.almeida, sameo
This patch remove the repeated code for checking llcp_sock &
llcp_sock->dev against NULL.
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
---
net/nfc/llcp/sock.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/net/nfc/llcp/sock.c b/net/nfc/llcp/sock.c
index ddeb9aa..6e188d4 100644
--- a/net/nfc/llcp/sock.c
+++ b/net/nfc/llcp/sock.c
@@ -300,9 +300,6 @@ static int llcp_sock_getname(struct socket *sock, struct sockaddr *uaddr,
pr_debug("%p %d %d %d\n", sk, llcp_sock->target_idx,
llcp_sock->dsap, llcp_sock->ssap);
- if (llcp_sock == NULL || llcp_sock->dev == NULL)
- return -EBADFD;
-
uaddr->sa_family = AF_NFC;
*len = sizeof(struct sockaddr_nfc_llcp);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] NFC: Remove repeated code for NULL check
2012-08-15 19:25 [PATCH] NFC: Remove repeated code for NULL check Syam Sidhardhan
@ 2012-08-17 22:02 ` Samuel Ortiz
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Ortiz @ 2012-08-17 22:02 UTC (permalink / raw)
To: Syam Sidhardhan; +Cc: linville, linux-wireless, lauro.venancio, aloisio.almeida
Hi Syam,
On Thu, Aug 16, 2012 at 12:55:43AM +0530, Syam Sidhardhan wrote:
> This patch remove the repeated code for checking llcp_sock &
> llcp_sock->dev against NULL.
>
> Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
> ---
> net/nfc/llcp/sock.c | 3 ---
> 1 file changed, 3 deletions(-)
Applied to my nfc-next branch, thanks.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-17 22:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15 19:25 [PATCH] NFC: Remove repeated code for NULL check Syam Sidhardhan
2012-08-17 22:02 ` Samuel Ortiz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).