diff options
author | Daniel M German <dmg@turingmachine.org> | 2019-06-21 17:22:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-21 18:01:09 +0200 |
commit | 4850f26abfcac9ed28a4db5817b46dc0bfbbbae0 (patch) | |
tree | a4e92bdb6e25792ae82d4339dde18567a73d62c8 /drivers/media/usb/pvrusb2/pvrusb2-dvb.h | |
parent | remove Documentation/index.rst.rej (diff) | |
download | linux-4850f26abfcac9ed28a4db5817b46dc0bfbbbae0.tar.xz linux-4850f26abfcac9ed28a4db5817b46dc0bfbbbae0.zip |
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>
Diffstat (limited to 'drivers/media/usb/pvrusb2/pvrusb2-dvb.h')
0 files changed, 0 insertions, 0 deletions