[patch] i915: remove unneed NULL checks

2010-08-23 Thread Dan Carpenter
On Wed, Jun 23, 2010 at 07:06:22PM +0200, Dan Carpenter wrote: > We don't need to check the list cursor in a list_for_each_entry(). It's > always non-null. > Here is another one that never got applied. I has a sad face. :( regards, dan carpenter > Signed-off-by: Dan Carpenter > > diff --gi

Re: [patch] i915: remove unneed NULL checks

2010-08-23 Thread Dan Carpenter
On Wed, Jun 23, 2010 at 07:06:22PM +0200, Dan Carpenter wrote: > We don't need to check the list cursor in a list_for_each_entry(). It's > always non-null. > Here is another one that never got applied. I has a sad face. :( regards, dan carpenter > Signed-off-by: Dan Carpenter > > diff --gi

[patch] i915: remove unneed NULL checks

2010-06-24 Thread Dan Carpenter
We don't need to check the list cursor in a list_for_each_entry(). It's always non-null. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index cc8131f..8a2bdfc 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/

[patch] i915: remove unneed NULL checks

2010-06-23 Thread Dan Carpenter
We don't need to check the list cursor in a list_for_each_entry(). It's always non-null. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index cc8131f..8a2bdfc 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/