net: context: Remove obsolete goto in net_context_put()
Some cleanup earlier left unnecessary goto. Cleaning the code and removing it. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
768968a445
commit
043400ce89
1 changed files with 0 additions and 4 deletions
|
@ -387,10 +387,6 @@ int net_context_put(struct net_context *context)
|
|||
|
||||
/* net_tcp_put() will handle decrementing refcount on stack's behalf */
|
||||
net_tcp_put(context);
|
||||
/* Assume it's better to have goto to immediate label than ugly
|
||||
* not indented #ifdef (if only they were intended!).
|
||||
*/
|
||||
goto unlock;
|
||||
|
||||
unlock:
|
||||
k_mutex_unlock(&context->lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue