Removed pointless NULL check
Removed pointless NULL check after malloc with M_WAITOK which can never return NULL. Sponsored by: Multiplay
This commit is contained in:
parent
069262a734
commit
65c3a353e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336165
@ -1069,8 +1069,6 @@ rip_pcblist(SYSCTL_HANDLER_ARGS)
|
||||
return (error);
|
||||
|
||||
inp_list = malloc(n * sizeof *inp_list, M_TEMP, M_WAITOK);
|
||||
if (inp_list == NULL)
|
||||
return (ENOMEM);
|
||||
|
||||
INP_INFO_RLOCK_ET(&V_ripcbinfo, et);
|
||||
for (inp = CK_LIST_FIRST(V_ripcbinfo.ipi_listhead), i = 0; inp && i < n;
|
||||
|
Loading…
Reference in New Issue
Block a user