diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2025-07-25 20:17:01 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-07-25 20:46:31 +0300 |
commit | 2d442a0c781403702de27ccfbc4bb233721585f5 (patch) | |
tree | a9fdd0fd5e3d456abd5a88bd6532fe08f06df991 /lib/crypto/mpi/mpiutil.c | |
parent | 87aa3c8d8c4aa2e2567fe04126d14eb9fde815e5 (diff) | |
download | linux-2d442a0c781403702de27ccfbc4bb233721585f5.tar.xz |
spi: SPISG: Fix less than zero comparison on a u32 variable
The check for ns < 0 is always false because variable ns is a u32 which
is not a signed type. Fix this by making ns a s32 type.
Fixes: cef9991e04ae ("spi: Add Amlogic SPISG driver")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20250725171701.839927-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions