Skip to content
Commit 4c93566e authored by David S. Miller's avatar David S. Miller
Browse files

[TULIP] DMFE: Fix SROM parsing regression.

Changeset 16b110c3

 (dmfe warning fix)
bothed up the offsets read from the SROM so that it doesn't read the
same datums it used to.

The change made transformations like turning:

	"srom + 34"

into

	"(__le32 *)srom + 34/4"

which doesn't work because 4 does not divide evenly
into 34 so we're using a different pointer offset
than in the original code.

I've changed theses cases in dmfe_parse_srom() to
consistently use "(type *)(srom + offset)" preserving
the offsets from the original code.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent acea6852
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment