Tag: fed4c72689805001108f86868e5856edb3d3808a

um: Eliminate null test after alloc_bootmem

Author: Amitoj Kaur Chawla <amitoj1606@gmail.com> alloc_bootmem function never returns NULL. Thus a NULL test after a call to this function is unnecessary. The Coccinelle semantic patch used to make this change is follows: @@ expression E; statement S; @@ E = alloc_bootmem(…) … when != E – if (E == NULL) S Signed-off-by: Amitoj Kaur …

Continue reading