Re: [PATCH] cifs: Fix copy_to_iter return value check

From: Markus Elfring
Date: Sun Oct 05 2025 - 06:46:44 EST


> The return value of copy_to_iter() function will never be negative,
> it is the number of bytes copied, or zero if nothing was copied.


Why do you propose to preserve the comparison operator part “<” then?
Would the condition check “!length” be nicer at this place?

Regards,
Markus