[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>
This commit is contained in:
committed by
David S. Miller
parent
6ddcf626fd
commit
9b37ee7585
@@ -1700,12 +1700,8 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case SIOCGSTAMP:
|
case SIOCGSTAMP:
|
||||||
if (sk != NULL) {
|
|
||||||
res = sock_get_timestamp(sk, argp);
|
res = sock_get_timestamp(sk, argp);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
res = -EINVAL;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case SIOCAX25ADDUID: /* Add a uid to the uid/call map table */
|
case SIOCAX25ADDUID: /* Add a uid to the uid/call map table */
|
||||||
case SIOCAX25DELUID: /* Delete a uid from the uid/call map table */
|
case SIOCAX25DELUID: /* Delete a uid from the uid/call map table */
|
||||||
|
@@ -1187,8 +1187,6 @@ static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case SIOCGSTAMP:
|
case SIOCGSTAMP:
|
||||||
ret = -EINVAL;
|
|
||||||
if (sk != NULL)
|
|
||||||
ret = sock_get_timestamp(sk, argp);
|
ret = sock_get_timestamp(sk, argp);
|
||||||
release_sock(sk);
|
release_sock(sk);
|
||||||
return ret;
|
return ret;
|
||||||
|
@@ -1256,9 +1256,7 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case SIOCGSTAMP:
|
case SIOCGSTAMP:
|
||||||
if (sk != NULL)
|
|
||||||
return sock_get_timestamp(sk, (struct timeval __user *)argp);
|
return sock_get_timestamp(sk, (struct timeval __user *)argp);
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
case SIOCGIFADDR:
|
case SIOCGIFADDR:
|
||||||
case SIOCSIFADDR:
|
case SIOCSIFADDR:
|
||||||
|
Reference in New Issue
Block a user