diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-10-24 18:28:43 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-11-01 11:15:15 +0200 |
commit | e6cb8769452e8236b52134e5cb4a18b8f5986932 (patch) | |
tree | 3c3daf1412c286300868b145c5e083ce447c9691 /net/ipv4/ah4.c | |
parent | 69188df5f6e4cecc6b76b958979ba363cd5240e8 (diff) |
wifi: airo: do not assign -1 to unsigned char
With char becoming unsigned by default, and with `char` alone being
ambiguous and based on architecture, we get a warning when assigning the
unchecked output of hex_to_bin() to that unsigned char. Mark `key` as a
`u8`, which matches the struct's type, and then check each call to
hex_to_bin() before casting.
Cc: Kalle Valo <kvalo@kernel.org>
Cc: linux-wireless@vger.kernel.org
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221024162843.535921-1-Jason@zx2c4.com
Diffstat (limited to 'net/ipv4/ah4.c')
0 files changed, 0 insertions, 0 deletions