net: rtnetlink: use BIT for flag values
authorNikolay Aleksandrov <razor@blackwall.org>
Wed, 13 Apr 2022 10:51:53 +0000 (13:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 11:46:25 +0000 (12:46 +0100)
Use BIT to define flag values.

Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/rtnetlink.h

index c51c5ff..0bf6224 100644 (file)
@@ -10,7 +10,7 @@ typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *,
 typedef int (*rtnl_dumpit_func)(struct sk_buff *, struct netlink_callback *);
 
 enum rtnl_link_flags {
-       RTNL_FLAG_DOIT_UNLOCKED = 1,
+       RTNL_FLAG_DOIT_UNLOCKED = BIT(0),
 };
 
 enum rtnl_kinds {