public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/pci/hotplug/cpqphp_ctrl.c: board_replaced: dead code
@ 2005-03-22 20:59 Adrian Bunk
  2005-03-24 18:07 ` Rolf Eike Beer
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-03-22 20:59 UTC (permalink / raw)
  To: greg; +Cc: linux-kernel, linux-pci

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.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-25 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-22 20:59 drivers/pci/hotplug/cpqphp_ctrl.c: board_replaced: dead code Adrian Bunk
2005-03-24 18:07 ` Rolf Eike Beer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox