net/core: Make use of assign_bit() API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 Jul 2023 10:08:29 +0000 (13:08 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Jul 2023 10:23:15 +0000 (12:23 +0200)
commit274c4a6d529cff48b241b15627b46b0f65987ade
tree4b5de264da12064555d8f4552eb5a10e31689da6
parent6843306689aff3aea608e4d2630b2a5a0137f827
net/core: 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-1-andriy.shevchenko@linux.intel.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/dev.c
net/core/sock.c