defer releasing the l3 dev so that the generic code can take care of cleaning system...
[project/netifd.git] / proto-shell.c
index 68af69b..f197c62 100644 (file)
@@ -125,10 +125,6 @@ proto_shell_teardown_cb(struct netifd_process *p, int ret)
                return;
 
        netifd_kill_process(&state->proto_task);
-
-       if (state->l3_dev.dev)
-               device_remove_user(&state->l3_dev);
-
        state->proto.proto_event(&state->proto, IFPEV_DOWN);
 }