Skip to content
Commit 83279d15 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Benjamin Cabé
Browse files

ring_buffer: optimize the partial buffer loop



It is more efficient to break early when size of claimed area becomes zero.

Signed-off-by: default avatarNicolas Pitre <npitre@baylibre.com>
parent 67978f8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment