diff --git a/net/netdev/netdev_unregister.c b/net/netdev/netdev_unregister.c index e0b5e713d4..104bb3022d 100644 --- a/net/netdev/netdev_unregister.c +++ b/net/netdev/netdev_unregister.c @@ -1,7 +1,7 @@ /**************************************************************************** * net/netdev/netdev_unregister.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -65,7 +65,7 @@ #endif /**************************************************************************** - * Priviate Types + * Private Types ****************************************************************************/ /**************************************************************************** @@ -133,7 +133,7 @@ int netdev_unregister(FAR struct net_driver_s *dev) { /* The entry was at the beginning of the list */ - g_netdevices = curr; + g_netdevices = curr->flink; } curr->flink = NULL;