Home
last modified time | relevance | path

Searched hist:"4850 f26abfcac9ed28a4db5817b46dc0bfbbbae0" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/usb/misc/
H A Dadutux.cdiff 4850f26abfcac9ed28a4db5817b46dc0bfbbbae0 Fri Jun 21 10:22:40 CDT 2019 Daniel M German <dmg@turingmachine.org> usb: clean up some of the computations in adu_read

Replace ?: with min to calculate the number of bytes in the secondary buffer,
including changing the data type of data_in_secondary to size_t to be
type-consistent. data_in_secondary can never be negative.

Remove some spurious calculations (copy_to_user returns zero on success),
making one variable redundant (i)

This change does not alter the functionality of the code.

Signed-off-by: Daniel M German <dmg@turingmachine.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>