]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: xhci: refactor xhci_td_cleanup() to return void
authorNiklas Neronin <niklas.neronin@linux.intel.com>
Wed, 6 Nov 2024 10:14:54 +0000 (12:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2024 12:26:16 +0000 (13:26 +0100)
commit7acfea2866acc6c888f880e28a249bc5ce069ad0
tree0bfba1ec11d0e396ff18e6ef2654ecb3de388f15
parent37d39db6dcff7d852079e9f9a66f41e1bd5b0a45
usb: xhci: refactor xhci_td_cleanup() to return void

The function is modified to return 'void' instead of an integer since it
invariably returns '0'. Additionally, multiple functions which only
return xhci_td_cleanup() are also refactored to return void.

This change eliminates the need for callers to handle a return value that
does not convey meaningful information and improve code readability, as it
becomes immediately clear that the function does not produce a significant
output.

Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20241106101459.775897-29-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c