Remove unnecessary check for NULL mbuf in soreceive_generic().
This check has been redundant since it was introduced in r162554. Reviewed by: emaste, glebius MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D10322
This commit is contained in:
parent
54f1738f42
commit
b8b1167ed6
@ -1766,7 +1766,7 @@ soreceive_generic(struct socket *so, struct sockaddr **psa, struct uio *uio,
|
||||
* requires MT_SONAME mbufs at the head of
|
||||
* each record.
|
||||
*/
|
||||
if (m && pr->pr_flags & PR_ATOMIC &&
|
||||
if (pr->pr_flags & PR_ATOMIC &&
|
||||
((flags & MSG_PEEK) == 0))
|
||||
(void)sbdroprecord_locked(&so->so_rcv);
|
||||
SOCKBUF_UNLOCK(&so->so_rcv);
|
||||
|
Loading…
Reference in New Issue
Block a user