netdev
[Top] [All Lists]

pci-skeleton duplex check

To: netdev@xxxxxxxxxxx
Subject: pci-skeleton duplex check
From: Roger Luethi <rl@xxxxxxxxxxx>
Date: Wed, 11 Dec 2002 14:24:36 +0100
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.27i
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


<Prev in Thread] Current Thread [Next in Thread>