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:
Jukka Rissanen 2020-06-01 16:41:21 +03:00
commit 043400ce89

View file

@ -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);