netlink: Make use of __assign_bit() API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Jul 2023 10:08:30 +0000 (13:08 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Jul 2023 10:23:15 +0000 (12:23 +0200)
commitb8e39b38487e68c6503419db6e4a851a0ef56de7
tree3c8f34bf76f3144b698792b0a85b7044eb676557
parent274c4a6d529cff48b241b15627b46b0f65987ade
netlink: Make use of __assign_bit() API

We have for some time the __assign_bit() API to replace open coded

if (foo)
__set_bit(n, bar);
else
__clear_bit(n, bar);

Use this API in the code. No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Message-ID: <20230710100830.89936-2-andriy.shevchenko@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/netlink/af_netlink.c