net_lwip_webserver: further simplify pbuf_copy_partial() usage

This commit is contained in:
Peter Lawrence 2021-08-16 17:04:57 -05:00
parent b682ce916a
commit 5a8ea0e0e2
1 changed files with 1 additions and 3 deletions

View File

@ -181,9 +181,7 @@ uint16_t tud_network_xmit_cb(uint8_t *dst, void *ref, uint16_t arg)
(void)arg; /* unused for this example */
pbuf_copy_partial(p, dst, p->tot_len, 0);
return p->tot_len;
return pbuf_copy_partial(p, dst, p->tot_len, 0);
}
static void service_traffic(void)