[PATCH] PCI: cpqphp_ctrl.c: board_replaced(): remove dead code
authorAdrian Bunk <bunk@stusta.de>
Sun, 26 Feb 2006 21:16:51 +0000 (22:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Mar 2006 22:35:16 +0000 (14:35 -0800)
commit1305e9184a3de84f78dca102b293d21007bb6c49
tree4cefbc44ce9ac3e8563a64fd76590a4f24cf389d
parent0cccd0c20677e8a9da40018632f1b6c487ba2bd5
[PATCH] PCI: cpqphp_ctrl.c: board_replaced(): remove dead code

The Coverity checker correctly noted, that in function board_replaced in
drivers/pci/hotplug/cpqphp_ctrl.c, the variable src always has the
value 8, and therefore much code after the

...
                        if (rc || src) {
...
                                if (rc)
                                        return rc;
                                else
                                        return 1;
                        }
...

can never be called.

This patch removes the unreachable code in this function fixing kernel
Bugzilla #6073.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/cpqphp_ctrl.c