[PATCH 0/4] remove dead NULL checks after GFP_NOFAIL allocations
Gou Hao <[email protected]>
| Newsgroups | gmane.linux.ports.ppc.embedded |
|---|---|
| Message-ID | <20260723081813.176792-1-gouhao__39163.5503665142$1784811577$gmane$org@uniontech.com> |
This is a code cleanup series that removes unreachable NULL checks (and associated error handling) that follow allocations using __GFP_NOFAIL, which guarantees non-NULL return. Gou Hao (4): powerpc/xive: remove dead NULL check after GFP_NOFAIL allocation drm: remove dead WARN_ON NULL check after GFP_NOFAIL allocation lib/test_hmm: remove dead NULL checks after GFP_NOFAIL allocations RDMA/cxgb4: remove dead NULL checks after GFP_NOFAIL allocations arch/powerpc/sysdev/xive/common.c | 3 --- drivers/gpu/drm/drm_modeset_lock.c | 4 ---- drivers/infiniband/hw/cxgb4/mem.c | 10 ++-------- lib/test_hmm.c | 6 ------ 4 files changed, 2 insertions(+), 21 deletions(-) -- 2.20.1