]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm: sti: fix coccicheck warnings
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Wed, 24 Aug 2016 07:35:20 +0000 (09:35 +0200)
committerVincent Abriou <vincent.abriou@st.com>
Tue, 20 Sep 2016 09:32:04 +0000 (11:32 +0200)
Fix four warnings shown by coccicheck.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Acked-by: Vincent Abriou <vincent.abriou@st.com>
drivers/gpu/drm/sti/sti_hdmi.c

index fedc17f98d9b029c835a7791e023e127c30e72a7..c6aa291cc5303a53da9908b821afc9d960ca1dfd 100644 (file)
@@ -569,7 +569,7 @@ static void hdmi_swreset(struct sti_hdmi *hdmi)
 
        /* Wait reset completed */
        wait_event_interruptible_timeout(hdmi->wait_event,
-                                        hdmi->event_received == true,
+                                        hdmi->event_received,
                                         msecs_to_jiffies
                                         (HDMI_TIMEOUT_SWRESET));
 
@@ -1181,7 +1181,7 @@ static void hdmi_audio_shutdown(struct device *dev, void *data)
                    HDMI_AUD_CFG_ONE_BIT_INVALID;
        hdmi_write(hdmi, audio_cfg, HDMI_AUDIO_CFG);
 
-       hdmi->audio.enabled = 0;
+       hdmi->audio.enabled = false;
        hdmi_audio_infoframe_config(hdmi);
 }
 
@@ -1213,7 +1213,7 @@ static int hdmi_audio_hw_params(struct device *dev,
                return -EINVAL;
        }
 
-       audio.enabled = 1;
+       audio.enabled = true;
 
        ret = hdmi_audio_configure(hdmi, &audio);
        if (ret < 0)
@@ -1265,7 +1265,7 @@ static int sti_hdmi_register_audio_driver(struct device *dev,
 
        DRM_DEBUG_DRIVER("\n");
 
-       hdmi->audio.enabled = 0;
+       hdmi->audio.enabled = false;
 
        hdmi->audio_pdev = platform_device_register_data(
                dev, HDMI_CODEC_DRV_NAME, PLATFORM_DEVID_AUTO,