wimax: remove dead code

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 22 17:59:07 EST 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=aec6f90d412fe30b88fdea3d1880734c837e15d4
Commit:     aec6f90d412fe30b88fdea3d1880734c837e15d4
Parent:     78ef359cb6211f590298451cb0c62a9d5ba3d12a
Author:     Michael Opdenacker <michael.opdenacker at free-electrons.com>
AuthorDate: Thu Nov 21 04:43:11 2013 +0100
Committer:  David S. Miller <davem at davemloft.net>
CommitDate: Thu Nov 21 13:09:42 2013 -0500

    wimax: remove dead code
    
    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 at free-electrons.com>
    Acked-by: Johannes Berg <johannes at sipsolutions.net>
    Signed-off-by: David S. Miller <davem at davemloft.net>
---
 net/wimax/stack.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/net/wimax/stack.c b/net/wimax/stack.c
index ef2191b..ec8b577 100644
--- a/net/wimax/stack.c
+++ b/net/wimax/stack.c
@@ -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;



More information about the linux-mtd-cvs mailing list