mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
nouveau/gsp/rm: cleanup WARN_ON(IS_ERR_OR_NULL)
Replace WARN_ON(IS_ERR_OR_NULL()) with WARN_ON(IS_ERR()) in various GSP-RM files. The underlying functions return error pointers, so checking for NULL is redundant. This affects: - r535_bar_bar2_update_pde() in bar.c Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patch.msgid.link/20260528062451.54107-5-zenghongling@kylinos.cn Reviewed-by: Lyude Paul <lyude@redhat.com>
This commit is contained in:
parent
67346c90ce
commit
6198977a78
|
|
@ -55,7 +55,7 @@ r535_bar_bar2_update_pde(struct nvkm_gsp *gsp, u8 page_shift, u64 pdbe)
|
|||
rpc_update_bar_pde_v15_00 *rpc;
|
||||
|
||||
rpc = nvkm_gsp_rpc_get(gsp, NV_VGPU_MSG_FUNCTION_UPDATE_BAR_PDE, sizeof(*rpc));
|
||||
if (WARN_ON(IS_ERR_OR_NULL(rpc)))
|
||||
if (WARN_ON(IS_ERR(rpc)))
|
||||
return -EIO;
|
||||
|
||||
rpc->info.barType = NV_RPC_UPDATE_PDE_BAR_2;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user