netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* problem with function vlan_get_protocol()
@ 2011-07-17  4:53 jiangtao.jit
  2011-07-17  7:34 ` Francois Romieu
  2011-07-17  8:15 ` jiangtao.jit
  0 siblings, 2 replies; 3+ messages in thread
From: jiangtao.jit @ 2011-07-17  4:53 UTC (permalink / raw)
  To: netdev

Hi,all

in file   inclue/linux/if_vlan.h

there is a statement in function vlan_get_protocol()

	if (likely(protop))
		protocol = *protop;

do we need an else branch on pointer protop failed ?  through the else is unlikely 

	if (likely(protop))
		protocol = *protop;
    else
		protocol = proto;

is it necessary ?

thanks


2011-07-17 
jiangtao.jit 


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

end of thread, other threads:[~2011-07-17  8:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-17  4:53 problem with function vlan_get_protocol() jiangtao.jit
2011-07-17  7:34 ` Francois Romieu
2011-07-17  8:15 ` jiangtao.jit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).