Messages in this thread | | | Date | Sun, 17 Jul 2011 11:51:50 +0800 | From | "jiangtao.jit" <> | Subject | problem with function vlan_get_protocol() |
| |
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
| |