[patch] drm/i915: cleanup min_t() casting

2011-10-19 Thread Dan Carpenter
Casting "len" from uin32_t to uint8_t in min_t() truncates the upper bits. It doesn't matter in this case because "len" is never more than 0x1f, but Smatch warns about it, so let's change it. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/

[patch] drm/i915: cleanup min_t() casting

2011-10-18 Thread Dan Carpenter
Casting "len" from uin32_t to uint8_t in min_t() truncates the upper bits. It doesn't matter in this case because "len" is never more than 0x1f, but Smatch warns about it, so let's change it. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/