Skip to content

Commit ff26c0c

Browse files
authored
[netdev]Fixed netdev_unregister missing correct return value. (#10693)
1 parent 5455622 commit ff26c0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/net/netdev/src/netdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ int netdev_unregister(struct netdev *netdev)
207207
sal_netdev_cleanup(netdev);
208208
#endif
209209
rt_memset(netdev, 0, sizeof(*netdev));
210+
return RT_EOK;
210211
}
211212

212213
return -RT_ERROR;

0 commit comments

Comments
 (0)