diff --git a/net/core/sock.c b/net/core/sock.c index 0f04d8bff607bfc7c46aa07544fb44cc02054f95..dfdd14cac775e9bfcee0085ee32ffcd0ab28b67b 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -2454,9 +2454,6 @@ EXPORT_SYMBOL(__sk_mem_reclaim); int sk_set_peek_off(struct sock *sk, int val) { - if (val < 0) - return -EINVAL; - sk->sk_peek_off = val; return 0; }