drm: remove `const` attribute to hint at caller that they now own the memory
[cascardo/linux.git] / drivers / gpu / drm / drm_atomic.c
index 087391f..5cb2e22 100644 (file)
@@ -837,7 +837,7 @@ static int drm_atomic_plane_check(struct drm_plane *plane,
        /* Check whether this plane supports the fb pixel format. */
        ret = drm_plane_check_pixel_format(plane, state->fb->pixel_format);
        if (ret) {
-               const char *format_name = drm_get_format_name(state->fb->pixel_format);
+               char *format_name = drm_get_format_name(state->fb->pixel_format);
                DRM_DEBUG_ATOMIC("Invalid pixel format %s\n", format_name);
                kfree(format_name);
                return ret;