From: Adrian Bunk Date: Sun, 26 Feb 2006 21:16:51 +0000 (+0100) Subject: [PATCH] PCI: cpqphp_ctrl.c: board_replaced(): remove dead code X-Git-Tag: v2.6.17-rc1~998^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1305e9184a3de84f78dca102b293d21007bb6c49;p=pandora-kernel.git [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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed