drm/msm: Eliminate unnecessary snprintf() usage from hot paths

There's no reason to constantly use snprintf() to generate pretty debug
strings from hot paths. We don't need them, so remove them.

Change-Id: I523c45bf3e382cc926364634ce0362dad014ce94
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
Sultan Alsawaf 2022-04-20 00:53:28 -07:00 committed by Richard Raya
parent 316fc7da75
commit 393c47521a

View File

@ -156,9 +156,7 @@ void dsi_convert_to_drm_mode(const struct dsi_display_mode *dsi_mode,
drm_mode->flags |= DRM_MODE_FLAG_CMD_MODE_PANEL;
/* set mode name */
snprintf(drm_mode->name, DRM_DISPLAY_MODE_LEN, "%dx%dx%dx%d",
drm_mode->hdisplay, drm_mode->vdisplay,
drm_mode->vrefresh, drm_mode->clock);
*drm_mode->name = '\0';
}
static int dsi_bridge_attach(struct drm_bridge *bridge)