From: Enrico Weigelt Date: Wed, 5 Jun 2019 21:06:40 +0000 (+0200) Subject: net: openvswitch: drop unneeded likely() call around IS_ERR() X-Git-Tag: v5.4-rc1~616^2~324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b90f5aa4d6268e81dd1fd51e5ef89d2892bf040d;p=platform%2Fkernel%2Flinux-rpi.git net: openvswitch: drop unneeded likely() call around IS_ERR() IS_ERR() already calls unlikely(), so this extra likely() call around the !IS_ERR() is not needed. Signed-off-by: Enrico Weigelt Signed-off-by: David S. Miller --- diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index dc9ff9367221..4076e080914a 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -1347,7 +1347,7 @@ static int ovs_flow_cmd_del(struct sk_buff *skb, struct genl_info *info) reply = ovs_flow_cmd_alloc_info((const struct sw_flow_actions __force *) flow->sf_acts, &flow->id, info, false, ufid_flags); if (likely(reply)) { - if (likely(!IS_ERR(reply))) { + if (!IS_ERR(reply)) { rcu_read_lock(); /*To keep RCU checker happy. */ err = ovs_flow_cmd_fill_info(flow, ovs_header->dp_ifindex, reply, info->snd_portid,