mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/nouveau/dp: convert to use ERR_CAST()
As opposed to open-code, use ERR_CAST to clearly indicate that this is a pointer to an error value and a type conversion is performed. Signed-off-by: Zhang Enpei <zhang.enpei@zte.com.cn> Link: https://lore.kernel.org/r/20250515201108576jof-gkjSxRfMaGDgKo-pc@zte.com.cn Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
4b1f230c87
commit
01738c4f47
|
|
@ -646,7 +646,7 @@ r535_conn_new(struct nvkm_disp *disp, u32 id)
|
|||
ctrl = nvkm_gsp_rm_ctrl_get(&disp->rm.objcom,
|
||||
NV0073_CTRL_CMD_SPECIFIC_GET_CONNECTOR_DATA, sizeof(*ctrl));
|
||||
if (IS_ERR(ctrl))
|
||||
return (void *)ctrl;
|
||||
return ERR_CAST(ctrl);
|
||||
|
||||
ctrl->subDeviceInstance = 0;
|
||||
ctrl->displayId = BIT(id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user