diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-09-12 23:23:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-12 23:23:52 +0200 |
commit | 9b37ee75858ce35cf3c0e4724acaf4efabb45687 (patch) | |
tree | 5ea2b68ca964fa7c5e64590d7c72b4dd5cc79762 /net/netrom | |
parent | [NETROM]: statistics fix (diff) | |
download | linux-9b37ee75858ce35cf3c0e4724acaf4efabb45687.tar.xz linux-9b37ee75858ce35cf3c0e4724acaf4efabb45687.zip |
[NETROM/AX.25/ROSE]: Remove useless tests
Remove error tests that have already been performed by the caller.
Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom')
-rw-r--r-- | net/netrom/af_netrom.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index f4578c759ffc..02b1ab52dbbf 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c @@ -1187,9 +1187,7 @@ static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) } case SIOCGSTAMP: - ret = -EINVAL; - if (sk != NULL) - ret = sock_get_timestamp(sk, argp); + ret = sock_get_timestamp(sk, argp); release_sock(sk); return ret; |