Skip to content

Commit 63a4e80

Browse files
tklauserdavem330
authored andcommitted
ipv6: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 98e4fcf commit 63a4e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/addrconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3297,7 +3297,7 @@ static int fixup_permanent_addr(struct inet6_dev *idev,
32973297
struct rt6_info *rt, *prev;
32983298

32993299
rt = addrconf_dst_alloc(idev, &ifp->addr, false);
3300-
if (unlikely(IS_ERR(rt)))
3300+
if (IS_ERR(rt))
33013301
return PTR_ERR(rt);
33023302

33033303
/* ifp->rt can be accessed outside of rtnl */

0 commit comments

Comments
 (0)