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
73ad3fb536
commit
1431521236
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=317421
@ -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