summaryrefslogtreecommitdiffstats
path: root/net
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
parent058576ddfb31762bfce70086a3c12678a97c4d75 (diff)
downloadop-kernel-dev-5db327f96daa2401b9afec6cd80cebe6c6475bb1.zip
op-kernel-dev-5db327f96daa2401b9afec6cd80cebe6c6475bb1.tar.gz
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')
-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 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);
OpenPOWER on IntegriCloud