drm/xe/devcoredump: Remove IS_ERR_OR_NULL check for kzalloc
authorShuicheng Lin <shuicheng.lin@intel.com>
Thu, 20 Feb 2025 00:17:10 +0000 (00:17 +0000)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 24 Feb 2025 21:31:35 +0000 (13:31 -0800)
commit046eda65258ba1e6d9052e3ca07d8e489b6325de
tree0fdc40973f9b1dbff9d76de69f1395dfc3198d84
parentc504ad914f5bb2465395b310b673b48d296e08c0
drm/xe/devcoredump: Remove IS_ERR_OR_NULL check for kzalloc

kzalloc returns a valid pointer or NULL if the allocation fails.
It never returns an error pointer. It is better to check for NULL directly.

Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250220001710.1803749-3-shuicheng.lin@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_devcoredump.c