bnx2: Refine VPD logic.
authorMichael Chan <mchan@broadcom.com>
Thu, 3 Dec 2009 23:58:00 +0000 (15:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2009 23:58:00 +0000 (15:58 -0800)
commit012093f6d5d89e6ed6e89c55c383f84b1cff7a78
tree14b514130bf8b0261e46592c6ca35518b7059bce
parent9b471446cb376e2d1a4ceb4695059acfc3437f32
bnx2: Refine VPD logic.

- Replace magic values with constants
- Simplify length calculation and fix a bug

Based on valuable feedback from Ben Hutchings <bhutchings@solarflare.com>

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c