mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
nouveau/gsp: cleanup IS_ERR_OR_NULL in rm_alloc functions
The underlying functions already return error pointers, so checking for NULL with IS_ERR_OR_NULL() is redundant. Use IS_ERR() instead. This affects: - nvkm_gsp_rm_alloc_get() - nvkm_gsp_rm_alloc() Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patch.msgid.link/20260528062451.54107-2-zenghongling@kylinos.cn Reviewed-by: Lyude Paul <lyude@redhat.com>
This commit is contained in:
parent
b3f349517d
commit
281fe11c6c
1 changed files with 3 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue