Forgot to remove this un-needed test. (M_WAITOK won't fail)
I vaguely remember someone once proving it COULD return NULL.. was that changed? Reminded by: BDE MFC after: 2 weeks
This commit is contained in:
parent
ad96855df1
commit
a8cfc0ee40
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81907
@ -303,7 +303,7 @@ m_copypacket(struct mbuf *m, int how)
|
||||
* continuing for "len" bytes, into the indicated buffer.
|
||||
*/
|
||||
void
|
||||
m_copydata(struct mbuf *m, int off, int len, caddr_t cp)
|
||||
m_copydata(const struct mbuf *m, int off, int len, caddr_t cp)
|
||||
{
|
||||
unsigned count;
|
||||
|
||||
|
@ -855,8 +855,6 @@ unp_pcblist(SYSCTL_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
unp_list = malloc(n * sizeof *unp_list, M_TEMP, M_WAITOK);
|
||||
if (unp_list == 0)
|
||||
return ENOMEM;
|
||||
|
||||
for (unp = LIST_FIRST(head), i = 0; unp && i < n;
|
||||
unp = LIST_NEXT(unp, unp_link)) {
|
||||
|
Loading…
Reference in New Issue
Block a user