net: Fix net_send return value documentation
If net_send() is success, do not unref the buffer. Free the buf when it returns error. Change-Id: Ic154879dfb583d52a0b12fd3e8bfc390a24efec9 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
13a75b7e42
commit
69236fd49a
|
@ -88,7 +88,8 @@ void net_context_put(struct net_context *context);
|
|||
*
|
||||
* @param buf Network buffer.
|
||||
*
|
||||
* @return 0 if ok, <0 if error.
|
||||
* @return 0 if ok (do not unref the buf),
|
||||
* <0 if error (unref the buf).
|
||||
*/
|
||||
int net_send(struct net_buf *buf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue