netdevsim: let net core to free netdevsim netdev
authorJiri Pirko <jiri@mellanox.com>
Tue, 9 Apr 2019 15:14:53 +0000 (17:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Apr 2019 18:16:59 +0000 (11:16 -0700)
commitc3d9a435d9398294231cc398173780bae951d60f
tree69f54ebbae2eeeb25d666d66711c6a82d3bbbc38
parent7d1df2c978dc472bc514f92c9ecb1db33503b298
netdevsim: let net core to free netdevsim netdev

No need to free it ourselves, just set the "needs_free_netdev" flag
and leave the work to net core.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/netdev.c