diff options
| author | Maurizio Lombardi <mlombard@redhat.com> | 2026-05-21 17:37:16 +0200 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-05-27 07:14:48 -0700 |
| commit | 6022a5330fa2eabce7f20a23200e14a771640f1a (patch) | |
| tree | 0dabcf47216b05b867068b27ad8a7a796022b0ac /include/linux/timerqueue_types.h | |
| parent | c8cdecdb47d3191146ab6a90b422d3271bc1ef89 (diff) | |
nvme-core: fix unsigned comparison warning in nvme_wait_freeze_timeout
The timeout variable in nvme_wait_freeze_timeout() is an unsigned type.
Checking if it is <= 0 triggers a compiler warning because an unsigned
variable can never be negative.
Fix this warning by changing the type to long.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202605211257.STzj2Ujv-lkp@intel.com/
Fixes: 23b6d2cbf75f ("nvme: remove redundant timeout argument from nvme_wait_freeze_timeout")
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'include/linux/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions
