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
@ -1069,8 +1069,6 @@ rip_pcblist(SYSCTL_HANDLER_ARGS)
|
|||||||
return (error);
|
return (error);
|
||||||
|
|
||||||
inp_list = malloc(n * sizeof *inp_list, M_TEMP, M_WAITOK);
|
inp_list = malloc(n * sizeof *inp_list, M_TEMP, M_WAITOK);
|
||||||
if (inp_list == NULL)
|
|
||||||
return (ENOMEM);
|
|
||||||
|
|
||||||
INP_INFO_RLOCK_ET(&V_ripcbinfo, et);
|
INP_INFO_RLOCK_ET(&V_ripcbinfo, et);
|
||||||
for (inp = CK_LIST_FIRST(V_ripcbinfo.ipi_listhead), i = 0; inp && i < n;
|
for (inp = CK_LIST_FIRST(V_ripcbinfo.ipi_listhead), i = 0; inp && i < n;
|
||||||
|
Loading…
Reference in New Issue
Block a user