diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2012-08-16 00:55:43 +0530 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-09-25 00:17:23 +0200 |
commit | 5db327f96daa2401b9afec6cd80cebe6c6475bb1 (patch) | |
tree | daa174a7bbf4174c662075d3682e781a06a24104 /net/nfc | |
parent | 058576ddfb31762bfce70086a3c12678a97c4d75 (diff) | |
download | linux-5db327f96daa2401b9afec6cd80cebe6c6475bb1.tar.gz linux-5db327f96daa2401b9afec6cd80cebe6c6475bb1.tar.bz2 linux-5db327f96daa2401b9afec6cd80cebe6c6475bb1.zip |
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.c | 3 |
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); |