milan-avb: gptp: initialise ret in the drain loop

This commit is contained in:
hackerman-kl 2026-04-28 07:40:44 +02:00
parent 21c4c59587
commit 0b09fb2b1e

View file

@ -68,7 +68,7 @@ static bool update_ts_refclk(struct gptp *gptp)
uint8_t *cid;
uint8_t *gmid;
uint8_t tmp;
ssize_t ret;
ssize_t ret = 0;
uint16_t data_len;
int avail;
bool gmid_changed = false;