drm/radeon: fix hdmi offset bug reported by smatch.
authorDave Airlie <airlied@redhat.com>
Wed, 19 May 2010 00:35:02 +0000 (10:35 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 19 May 2010 00:35:02 +0000 (10:35 +1000)
Reported-by: Dan Carpenter
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600_hdmi.c

index 40b1aca6d1f48ff1699299ba43591f8c07c2f94c..26b4bc9d89a574d048dfcfc190e5c11b2de341ee 100644 (file)
@@ -539,7 +539,7 @@ void r600_hdmi_disable(struct drm_encoder *encoder)
        struct drm_device *dev = encoder->dev;
        struct radeon_device *rdev = dev->dev_private;
        struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
-       uint8_t offset;
+       uint32_t offset;
 
        if (ASIC_IS_DCE4(rdev))
                return;