drm/managed: Clean up GFP_ flag usage in drmm_kmalloc()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 21 Jul 2023 14:57:49 +0000 (17:57 +0300)
committerMaxime Ripard <mripard@kernel.org>
Mon, 24 Jul 2023 10:48:27 +0000 (12:48 +0200)
commitc3f698d85ecaf66d42871865b38c976c128c297c
treefa5bd77226368659b9d5521ea5b7bf5029a21f3e
parentd65feac281ab479c679e0d5d2e44c3ac98eb8707
drm/managed: Clean up GFP_ flag usage in drmm_kmalloc()

This code is not using the correct gfp flags which were passed in.
However, this does not affect runtime because kstrdup_const() is a
no-op in this context.  (It just returns the "kmalloc" string literal
without doing an allocation.)

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/ddf86b59-696a-45f0-96dd-b87aa7b9ab2e@moroto.mountain
drivers/gpu/drm/drm_managed.c