Subject: pci-skeleton duplex check

From: Roger Luethi <[email-masked]>
Date: Wed, 11 Dec 2002 14:24:36 +0100

pci-skeleton (and some other net drivers) figure out the duplex setting
like this (leaving duplex locks out here):

int duplex = (lpar & 0x0100) || (lpar & 0x01C0) == 0x0040;

If we get past the first condition, we already know bit 8 must be 0. Why do
we check again in the second condition?

Roger