lkml.org 
[lkml]   [2011]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectproblem 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



\
 
 \ /
  Last update: 2011-07-17 05:55    [W:0.074 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site