]> err.no Git - linux-2.6/blobdiff - net/ax25/af_ax25.c
[NETROM/AX.25/ROSE]: Remove useless tests
[linux-2.6] / net / ax25 / af_ax25.c
index 17f192b778677ebe79bd90a30084fbb7d46e4fd4..9c487311e0a9e7a88354f84e0b75a1fb8aef6b57 100644 (file)
@@ -1700,11 +1700,7 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
        }
 
        case SIOCGSTAMP:
-               if (sk != NULL) {
-                       res = sock_get_timestamp(sk, argp);
-                       break;
-               }
-               res = -EINVAL;
+               res = sock_get_timestamp(sk, argp);
                break;
 
        case SIOCAX25ADDUID:    /* Add a uid to the uid/call map table */