wimax: remove dead code
authorMichael Opdenacker <michael.opdenacker@free-electrons.com>
Thu, 21 Nov 2013 03:43:11 +0000 (04:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2013 18:09:42 +0000 (13:09 -0500)
This removes a code line that is between a "return 0;" and an error label.
This code line can never be reached.

Found by Coverity (CID: 1130529)

Signed-off-by: Michael Opdenacker <michael.opdenacker@free-electrons.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/wimax/stack.c

index ef2191b969a7aa6967f2a3f7855e5b20cfef5cfc..ec8b577db1354a6e6c33e631a3223f1fb5af7ccf 100644 (file)
@@ -610,7 +610,6 @@ int __init wimax_subsys_init(void)
        d_fnend(4, NULL, "() = 0\n");
        return 0;
 
-       genl_unregister_family(&wimax_gnl_family);
 error_register_family:
        d_fnend(4, NULL, "() = %d\n", result);
        return result;