Hello,

LGTM.

> -     addr->mode = mode;
> -
> -     if (mode == IEEE802154_ADDR_NONE)
> +     if (mode == IEEE802154_ADDR_NONE) {
> +             memset(addr, 0, sizeof(*addr));
> +             addr->mode = IEEE802154_ADDR_NONE;
>               return 0;
> +     }
> +
> +     addr->mode = mode;
>  
>       if (!omit_pan) {
>               memcpy(&addr->pan_id, buf + pos, 2);
>
>

Reviewed-by: Miquel Raynal <[email protected]>

Thanks,
Miquèl

Reply via email to