Netdev List
 help / color / mirror / Atom feed
* linux-4.2-rc1/samples/bpf/sockex3_kern.c: bad expression ?
@ 2015-07-07 11:27 David Binderman
  2015-07-07 19:14 ` Alexei Starovoitov
  0 siblings, 1 reply; 3+ messages in thread
From: David Binderman @ 2015-07-07 11:27 UTC (permalink / raw)
  To: Alexei Starovoitov, netdev@vger.kernel.org

Hello there,

[linux-4.2-rc1/samples/bpf/sockex3_kern.c:268]: (style) Expression '(X & 0xf0) == 0x4' is always false.

Source code is

   if ((verlen & 0xF0) == 4)

Maybe

   if ((verlen & 0xF0) == 0x40)

Regards

David Binderman


 		 	   		  

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

end of thread, other threads:[~2015-07-07 19:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 11:27 linux-4.2-rc1/samples/bpf/sockex3_kern.c: bad expression ? David Binderman
2015-07-07 19:14 ` Alexei Starovoitov
2015-07-07 19:24   ` David Binderman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox