Skip to content

Commit b90f5aa

Browse files
metuxdavem330
authored andcommitted
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 <info@metux.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4546e44 commit b90f5aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/openvswitch/datapath.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ static int ovs_flow_cmd_del(struct sk_buff *skb, struct genl_info *info)
13471347
reply = ovs_flow_cmd_alloc_info((const struct sw_flow_actions __force *) flow->sf_acts,
13481348
&flow->id, info, false, ufid_flags);
13491349
if (likely(reply)) {
1350-
if (likely(!IS_ERR(reply))) {
1350+
if (!IS_ERR(reply)) {
13511351
rcu_read_lock(); /*To keep RCU checker happy. */
13521352
err = ovs_flow_cmd_fill_info(flow, ovs_header->dp_ifindex,
13531353
reply, info->snd_portid,

0 commit comments

Comments
 (0)