Skip to content
Commit 01a19a61 authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Johan Hedberg
Browse files

usb: cdc_acm: do not call usb_transfer if there is nothing to transfer



In case the ring buffer is empty, ring_buf_get_claim() returns a zero
length. Exit the function in that case as calling usb_transfer() with a
zero length will send a ZLP.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent b0e3a5fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment