]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/msm/hdmi: Drop pointless static qualifier in msm_hdmi_bind()
authorYueHaibing <yuehaibing@huawei.com>
Wed, 14 Nov 2018 09:55:34 +0000 (09:55 +0000)
committerSean Paul <seanpaul@chromium.org>
Mon, 3 Dec 2018 13:46:14 +0000 (08:46 -0500)
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>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/msm/hdmi/hdmi.c

index 33e083f71a170e5c2c05823be647df5a1081fd7d..adbdce3aeda0039f7779059687774924c7d6561f 100644 (file)
@@ -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;