]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usbip: Use min to simplify stub_send_ret_submit
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 17 Oct 2025 09:19:23 +0000 (11:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 08:58:31 +0000 (10:58 +0200)
commit8ad194699fc17bec5307b59d36676f43ea460b05
tree98e37f9c737c7dbb08bd717c93e21bbd086256c4
parent071786e27d81d3e8ae11f078357c9373fc4ce2e8
usbip: Use min to simplify stub_send_ret_submit

Use min() to improve stub_send_ret_submit(). Change the local variable
'size' from 'int' to 'unsigned int' to prevent a signedness error and to
match the resulting type.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20251017091923.1694-2-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/stub_tx.c