Commit 5369f3c5 authored by zhaoxiao's avatar zhaoxiao Committed by Rob Clark

drm/msm: Remove initialization of static variables

Address the following checkpatch errors:
ERROR: do not initialise statics to false

FILE: :drivers/gpu/drm/msm/msm_drv.c:21:
-static bool reglog = false;

FILE: :drivers/gpu/drm/msm/msm_drv.c:31:
-bool dumpstate = false;
Signed-off-by: default avatarzhaoxiao <long870912@gmail.com>
Link: https://lore.kernel.org/r/20210906064315.4975-1-long870912@gmail.comSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 803e66f4
...@@ -58,7 +58,7 @@ static const struct drm_mode_config_helper_funcs mode_config_helper_funcs = { ...@@ -58,7 +58,7 @@ static const struct drm_mode_config_helper_funcs mode_config_helper_funcs = {
}; };
#ifdef CONFIG_DRM_MSM_REGISTER_LOGGING #ifdef CONFIG_DRM_MSM_REGISTER_LOGGING
static bool reglog = false; static bool reglog;
MODULE_PARM_DESC(reglog, "Enable register read/write logging"); MODULE_PARM_DESC(reglog, "Enable register read/write logging");
module_param(reglog, bool, 0600); module_param(reglog, bool, 0600);
#else #else
...@@ -75,7 +75,7 @@ static char *vram = "16m"; ...@@ -75,7 +75,7 @@ static char *vram = "16m";
MODULE_PARM_DESC(vram, "Configure VRAM size (for devices without IOMMU/GPUMMU)"); MODULE_PARM_DESC(vram, "Configure VRAM size (for devices without IOMMU/GPUMMU)");
module_param(vram, charp, 0); module_param(vram, charp, 0);
bool dumpstate = false; bool dumpstate;
MODULE_PARM_DESC(dumpstate, "Dump KMS state on errors"); MODULE_PARM_DESC(dumpstate, "Dump KMS state on errors");
module_param(dumpstate, bool, 0600); module_param(dumpstate, bool, 0600);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment