mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[NETROM/AX.25/ROSE]: Remove useless tests
Remove error tests that have already been performed by the caller. Signed-off-by: Ralf Baechle DL5RB <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6ddcf626fd
commit
9b37ee7585
3 changed files with 3 additions and 11 deletions
|
|
@ -1256,9 +1256,7 @@ static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|||
}
|
||||
|
||||
case SIOCGSTAMP:
|
||||
if (sk != NULL)
|
||||
return sock_get_timestamp(sk, (struct timeval __user *)argp);
|
||||
return -EINVAL;
|
||||
return sock_get_timestamp(sk, (struct timeval __user *)argp);
|
||||
|
||||
case SIOCGIFADDR:
|
||||
case SIOCSIFADDR:
|
||||
|
|
|
|||
Loading…
Reference in a new issue