Re: [patch] drm/i915: cleanup a min_t() cast

2013-09-20 Thread Daniel Vetter
On Fri, Sep 20, 2013 at 02:20:18PM +0300, Dan Carpenter wrote: > The lower layers of sysfs will not allow an "offset" of more than > GEN7_L3LOG_SIZE and also l3_access_valid() caps it a second time. But > it's a little easier to audit if we don't have to worry that the > subtraction will result in

[patch] drm/i915: cleanup a min_t() cast

2013-09-20 Thread Dan Carpenter
The lower layers of sysfs will not allow an "offset" of more than GEN7_L3LOG_SIZE and also l3_access_valid() caps it a second time. But it's a little easier to audit if we don't have to worry that the subtraction will result in negative values. Signed-off-by: Dan Carpenter diff --git a/drivers/