mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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:
parent
316fc7da75
commit
393c47521a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user