]> git.ipfire.org Git - thirdparty/grub.git/commit
bus/usb/ehci: Define GRUB_EHCI_TOGGLE as grub_uint32_t
authorAlec Brown <alec.r.brown@oracle.com>
Tue, 4 Feb 2025 15:11:10 +0000 (15:11 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 13 Feb 2025 14:45:58 +0000 (15:45 +0100)
commit9907d9c2723304b42cf6da74f1cc6c4601391956
treed69104dac66b9aff670ee6ddc6dfcb243f0b84ab
parentf8795cde217e21539c2f236bcbb1a4bf521086b3
bus/usb/ehci: Define GRUB_EHCI_TOGGLE as grub_uint32_t

The Coverity indicates that GRUB_EHCI_TOGGLE is an int that contains
a negative value and we are using it for the variable token which is
grub_uint32_t. To remedy this we can cast the definition to grub_uint32_t.

Fixes: CID 473851
Signed-off-by: Alec Brown <alec.r.brown@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/bus/usb/ehci.c