Skip to content

Commit f492ce6

Browse files
krish2718rado17
authored andcommitted
[nrf fromlist] net: Fix the return code for success
None of the drivers seem to return the number of bytes, they all return 0 for success, so, fix the docs. Upstream PR #: 93060 Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 3b32940 commit f492ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/net/net_l2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct net_l2 {
6666
* This function is used by net core to push a packet to lower layer
6767
* (interface's L2), which in turn might work on the packet relevantly.
6868
* (adding proper header etc...)
69-
* Returns a negative error code, or the number of bytes sent otherwise.
69+
* Returns a negative error code, or 0 if the packet was accepted.
7070
*/
7171
int (*send)(struct net_if *iface, struct net_pkt *pkt);
7272

0 commit comments

Comments
 (0)