From: Pravin B Shelar Date: Sun, 19 Oct 2014 19:03:40 +0000 (-0700) Subject: openvswitch: Avoid NULL mask check while building mask X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~252^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a85311bf1f9f8185682990cafdd4e0572c0ed373;p=pandora-kernel.git openvswitch: Avoid NULL mask check while building mask OVS does mask validation even if it does not need to convert netlink mask attributes to mask structure. ovs_nla_get_match() caller can pass NULL mask structure pointer if the caller does not need mask. Therefore NULL check is required in SW_FLOW_KEY* macros. Following patch does not convert mask netlink attributes if mask pointer is NULL, so we do not need these checks in SW_FLOW_KEY* macro. Signed-off-by: Pravin B Shelar Acked-by: Daniele Di Proietto Acked-by: Andy Zhou --- Reading git-diff-tree failed