Re: [PATCH v3] usb: clean up some of the computations in adu_read

2019-06-21 Thread dmg
d...@turingmachine.org writes: > From: Daniel M German > Sorry, I put a spurious line in the body of the email. I am resending. --dmg

[PATCH v3] usb: clean up some of the computations in adu_read

2019-06-21 Thread dmg
From: Daniel M German 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 succ