]> git.baikalelectronics.ru Git - kernel.git/commit
datagram: remove rendundant 'peeked' argument
authorPaolo Abeni <pabeni@redhat.com>
Mon, 8 Apr 2019 08:15:59 +0000 (10:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2019 16:51:54 +0000 (09:51 -0700)
commit631ac0985757dc24821087ec903b7ab873990bca
tree147961d1aab87e039665eda235344ba5d6900111
parent48d2c5400e3f62a1d66ffb656a665a47c7e8d27d
datagram: remove rendundant 'peeked' argument

After commit cd4cf360dc51 ("net/udp: do not touch skb->peeked unless
really needed") the 'peeked' argument of __skb_try_recv_datagram()
and friends is always equal to !!'flags & MSG_PEEK'.

Since such argument is really a boolean info, and the callers have
already 'flags & MSG_PEEK' handy, we can remove it and clean-up the
code a bit.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/udp.h
net/core/datagram.c
net/ipv4/udp.c
net/ipv6/udp.c
net/unix/af_unix.c