Bug #5253
kmem_alloc/kmem_zalloc won't fail with KM_SLEEP
Start date:
2014-10-23
Due date:
% Done:
60%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Description
Passing KM_SLEEP to kmem_alloc or kmem_zalloc guarantees that the return value is not NULL. Therefore any NULL pointer checking on these calls is simply unnecessary and it obfuscates the code.
Related issues