[-next] drm/msm/hdmi: Drop pointless static qualifier in msm_hdmi_bind()

Submitted by YueHaibing on Nov. 14, 2018, 9:55 a.m.

Details

Message ID 1542189334-47735-1-git-send-email-yuehaibing@huawei.com
State New
Headers show
Series "drm/msm/hdmi: Drop pointless static qualifier in msm_hdmi_bind()" ( rev: 1 ) in Freedreno

Not browsing as part of any series.

Commit Message

YueHaibing Nov. 14, 2018, 9:55 a.m.
There is no need to have the 'struct hdmi_platform_config *hdmi_cfg'
variable static since new value always be assigned before use it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/gpu/drm/msm/hdmi/hdmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c
index 74ffc24..ace8aab 100644
--- a/drivers/gpu/drm/msm/hdmi/hdmi.c
+++ b/drivers/gpu/drm/msm/hdmi/hdmi.c
@@ -577,7 +577,7 @@  static int msm_hdmi_bind(struct device *dev, struct device *master, void *data)
 {
 	struct drm_device *drm = dev_get_drvdata(master);
 	struct msm_drm_private *priv = drm->dev_private;
-	static struct hdmi_platform_config *hdmi_cfg;
+	struct hdmi_platform_config *hdmi_cfg;
 	struct hdmi *hdmi;
 	struct device_node *of_node = dev->of_node;
 	int i, err;