3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-06 03:18:46 +02:00

crypto: use SWAP from useful.h

This commit is contained in:
Denis Kenzior 2023-10-11 09:58:15 -05:00
parent f86e7283e7
commit 600bea73ec

View File

@ -439,8 +439,6 @@ free_ctr:
return false; return false;
} }
#define SWAP(a, b) do { int _t = a; a = b; b = _t; } while (0)
static void arc4_set_key(struct arc4_ctx *ctx, unsigned int length, static void arc4_set_key(struct arc4_ctx *ctx, unsigned int length,
const uint8_t *key) const uint8_t *key)
{ {