Re: [Intel-gfx] [PATCH] drm/i915/dp: silence a static checker warning

2018-05-04 Thread Chris Wilson
Quoting Rodrigo Vivi (2018-05-03 17:40:00) > On Thu, May 03, 2018 at 01:53:22PM +0300, Dan Carpenter wrote: > > Smatch warns that "n_entries" isn't always set. It would trigger a > > some WARN_ON()s on that path so presumably it can't happen but it's > > simple enough to initialize it to zero just

Re: [Intel-gfx] [PATCH] drm/i915/dp: silence a static checker warning

2018-05-03 Thread Rodrigo Vivi
On Thu, May 03, 2018 at 01:53:22PM +0300, Dan Carpenter wrote: > Smatch warns that "n_entries" isn't always set. It would trigger a > some WARN_ON()s on that path so presumably it can't happen but it's > simple enough to initialize it to zero just to silence the warning. I usually would just ask

[Intel-gfx] [PATCH] drm/i915/dp: silence a static checker warning

2018-05-03 Thread Dan Carpenter
Smatch warns that "n_entries" isn't always set. It would trigger a some WARN_ON()s on that path so presumably it can't happen but it's simple enough to initialize it to zero just to silence the warning. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm