All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/gpu/drm/gma500/mdfld_intel_display.c:102:37: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
@ 2017-10-23 19:38 David Binderman
  2017-10-24  8:54   ` Jani Nikula
  0 siblings, 1 reply; 6+ messages in thread
From: David Binderman @ 2017-10-23 19:38 UTC (permalink / raw)
  To: patrik.r.jakobsson@gmail.com, airlied@linux.ie,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org


Hello there,

Source code is

        if ((temp & PIPEACONF_PIPE_STATE) == 1)
            break;

but

$ fgrep PIPEACONF_PIPE_STATE `find drivers/gpu/drm/gma500 -name \*.h -print`
drivers/gpu/drm/gma500/psb_intel_reg.h:#define PIPEACONF_PIPE_STATE		(1 << 30)
$ 

Suggest new code

        if ((temp & PIPEACONF_PIPE_STATE) != 0)
            break;

Regards

David Binderman
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-10-24 21:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-23 19:38 drivers/gpu/drm/gma500/mdfld_intel_display.c:102:37: warning: bitwise comparison always evaluates to false [-Wtautological-compare] David Binderman
2017-10-24  8:54 ` Jani Nikula
2017-10-24  8:54   ` Jani Nikula
2017-10-24  9:07   ` David Binderman
2017-10-24  9:46     ` Jani Nikula
2017-10-24  9:46       ` Jani Nikula

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.