You need to sign in or sign up before continuing.
-
Philippe Mathieu-Daudé authored
To simplify the function body, invert the if() statement, returning earlier. Since we already checked there is enough data in the iovec buffer, simply add an assert() call to consume the bytes_read variable. Reviewed-by:
Stefano Garzarella <sgarzare@redhat.com> Reviewed-by:
Miroslav Rezanina <mrezanin@redhat.com> Signed-off-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by:
Jason Wang <jasowang@redhat.com>
Philippe Mathieu-Daudé authoredTo simplify the function body, invert the if() statement, returning earlier. Since we already checked there is enough data in the iovec buffer, simply add an assert() call to consume the bytes_read variable. Reviewed-by:
Stefano Garzarella <sgarzare@redhat.com> Reviewed-by:
Miroslav Rezanina <mrezanin@redhat.com> Signed-off-by:
Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by:
Jason Wang <jasowang@redhat.com>