]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/gpu/drm/radeon/radeon_display.c
drm/radeon: remove boolean checks in if statements.
[linux.git] / drivers / gpu / drm / radeon / radeon_display.c
index e81b01f8db90e3231580346ad86c1df80b81ff88..856526cb2caf229820552a3fe4b2bcd3c309d3eb 100644 (file)
@@ -24,6 +24,7 @@
  *          Alex Deucher
  */
 
+#include <linux/pci.h>
 #include <linux/pm_runtime.h>
 #include <linux/gcd.h>
 
@@ -36,7 +37,6 @@
 #include <drm/drm_fb_helper.h>
 #include <drm/drm_fourcc.h>
 #include <drm/drm_gem_framebuffer_helper.h>
-#include <drm/drm_pci.h>
 #include <drm/drm_plane_helper.h>
 #include <drm/drm_probe_helper.h>
 #include <drm/drm_vblank.h>
@@ -847,11 +847,11 @@ static bool radeon_setup_enc_conn(struct drm_device *dev)
        if (rdev->bios) {
                if (rdev->is_atom_bios) {
                        ret = radeon_get_atom_connector_info_from_supported_devices_table(dev);
-                       if (ret == false)
+                       if (!ret)
                                ret = radeon_get_atom_connector_info_from_object_table(dev);
                } else {
                        ret = radeon_get_legacy_connector_info_from_bios(dev);
-                       if (ret == false)
+                       if (!ret)
                                ret = radeon_get_legacy_connector_info_from_table(dev);
                }
        } else {
@@ -1687,7 +1687,6 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
        struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc);
        struct radeon_encoder *radeon_encoder;
        struct drm_connector *connector;
-       struct radeon_connector *radeon_connector;
        bool first = true;
        u32 src_v = 1, dst_v = 1;
        u32 src_h = 1, dst_h = 1;
@@ -1700,7 +1699,6 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
                        continue;
                radeon_encoder = to_radeon_encoder(encoder);
                connector = radeon_get_connector_for_encoder(encoder);
-               radeon_connector = to_radeon_connector(connector);
 
                if (first) {
                        /* set scaling */