Re: [PATCH] usb: storage: realtek_cr: Simplify rts51x_bulk_transport()
From: Greg Kroah-Hartman
Date: Tue Aug 12 2025 - 11:03:13 EST
On Tue, Aug 12, 2025 at 04:43:58PM +0200, Thorsten Blum wrote:
> Change the function parameter 'buf_len' from 'int' to 'unsigned int' and
> only update the local variable 'residue' if needed.
But why?
> Update the rts51x_read_status() function signature accordingly.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/usb/storage/realtek_cr.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
Have you tested this change? What caused this to be needed?
thanks,
greg k-h