Skip to content

Commit 90876fd

Browse files
committed
drm/dp_mst: Drop DRM_ERROR() on kzalloc() fail in drm_dp_mst_handle_up_req()
Checkpatch was complaining about this - there's no need for us to print errors when kzalloc() fails, as kzalloc() will already WARN for us. So, let's fix that before converting things to make checkpatch happy. Signed-off-by: Lyude Paul <[email protected]> Cc: Robert Foss <[email protected]> Reviewed-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent c5261e9 commit 90876fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/gpu/drm/drm_dp_mst_topology.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4109,10 +4109,9 @@ static int drm_dp_mst_handle_up_req(struct drm_dp_mst_topology_mgr *mgr)
41094109
return 0;
41104110

41114111
up_req = kzalloc(sizeof(*up_req), GFP_KERNEL);
4112-
if (!up_req) {
4113-
DRM_ERROR("Not enough memory to process MST up req\n");
4112+
if (!up_req)
41144113
return -ENOMEM;
4115-
}
4114+
41164115
INIT_LIST_HEAD(&up_req->next);
41174116

41184117
drm_dp_sideband_parse_req(&mgr->up_req_recv, &up_req->msg);

0 commit comments

Comments
 (0)