All of lore.kernel.org
 help / color / mirror / Atom feed
* staging/dgap/dgap.c:981: bad if test ?
@ 2015-01-22 10:05 David Binderman
  2015-01-22 10:14 ` Dan Carpenter
  0 siblings, 1 reply; 6+ messages in thread
From: David Binderman @ 2015-01-22 10:05 UTC (permalink / raw)
  To: driverdev-devel

Hello there,

[linux-3.19-rc5/drivers/staging/dgap/dgap.c:981]: (warning) Logical disjunction always evaluates to true: conc_type != 65 || conc_type != 66.

Source code is

            if (conc_type == 0 || conc_type != CX ||
                conc_type != EPC) {

Suggest code rework.

Regards

David Binderman

 		 	   		  
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

end of thread, other threads:[~2015-01-23  0:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 10:05 staging/dgap/dgap.c:981: bad if test ? David Binderman
2015-01-22 10:14 ` Dan Carpenter
2015-01-22 10:20   ` David Binderman
2015-01-22 10:37     ` Dan Carpenter
2015-01-22 10:44       ` David Binderman
2015-01-23  0:19   ` DaeSeok Youn

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.