From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: nouveau/gsp/rm/alloc: Cleanup IS_ERR_OR_NULL usage Date: Thu, 04 Jun 2026 14:22:54 +1000 Message-ID: In-Reply-To: <20260601095403.228220-4-zenghongling@kylinos.cn> References: <20260601095403.228220-1-zenghongling@kylinos.cn> <20260601095403.228220-4-zenghongling@kylinos.cn> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Patch Review **Already applied on drm-next.** The change is correct: ```c rpc =3D nvkm_gsp_rpc_get(gsp, NV_VGPU_MSG_FUNCTION_FREE, sizeof(*rpc)); - if (WARN_ON(IS_ERR_OR_NULL(rpc))) + if (WARN_ON(IS_ERR(rpc))) return -EIO; ``` `nvkm_gsp_rpc_get()` wraps `r535_gsp_rpc_get()`, which returns `ERR_CAST(rp= c)` on error or `rpc->data` on success =E2=80=94 never NULL. --- Generated by Claude Code Patch Reviewer