Skip to contentSkip to conversation

problem with function vlan_get_protocol()

DISCUSSION jiangtao.jit 2 participants 3 messages Jul 17, 2011

lore
Share & tools
lore
#0 lore raw

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;

thanks

----------------------
2011-07-17
jiangtao.jit

#2 lore raw
In reply to jiangtao.jit

i'm sorry for my ignorance
thanks for your reminder
i'll post the question on [email protected] then thank you again

发件人: David Miller
发送时间: 2011-07-17 12:17:23
收件人: jiangtao.jit
抄送: linux-kernel
主题: Re: problem with function vlan_get_protocol()

Networking questions belong on [email protected], most of
the networking developers do not read linux-kernel
Thank you. �翳簕.n�+壏煯壄�+%娝�遍荻w�簕.n�+壏{炳G珴�妠ay�蕠跈�,jf"穐殢飦�戧鐉_璁(殠娸"濟�m���G珴�⒏?櫒璀�&x忈秈O曟瑉窔v豝�m��� �鹅�⒏?朓�