summaryrefslogtreecommitdiff
path: root/net/nfc
diff options
context:
space:
mode:
authorSyam Sidhardhan <syamsidhardh@gmail.com>2012-08-16 00:55:43 +0530
committerSamuel Ortiz <sameo@linux.intel.com>2012-09-25 00:17:23 +0200
commit5db327f96daa2401b9afec6cd80cebe6c6475bb1 (patch)
treedaa174a7bbf4174c662075d3682e781a06a24104 /net/nfc
parent058576ddfb31762bfce70086a3c12678a97c4d75 (diff)
NFC: Remove repeated code for NULL check
This patch remove the repeated code for checking llcp_sock & llcp_sock->dev against NULL. Signed-off-by: Syam Sidhardhan <s.syam@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-rw-r--r--net/nfc/llcp/sock.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/nfc/llcp/sock.c b/net/nfc/llcp/sock.c
index ddeb9aa398f0..6e188d4020ba 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);