]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: storage: realtek_cr: Simplify residue calculation in rts51x_bulk_transport()
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 28 Aug 2025 16:26:24 +0000 (18:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:21:25 +0000 (15:21 +0200)
commit5195edb359855d9a6460f19b7c3915a8611fceed
treeb1ffcadfe744b00edc52a8611fec93b73064e725
parent811ee632b1f7e543ccaf61d7c241e73c386a6eb2
usb: storage: realtek_cr: Simplify residue calculation in rts51x_bulk_transport()

Simplify the calculation of 'residue' in rts51x_bulk_transport() and
avoid unnecessarily reassigning 'residue' to itself.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250828162623.4840-3-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/realtek_cr.c