net: fec: use container_of to resolve bufdesc_ex from bufdesc
authorFabian Frederick <fabf@skynet.be>
Sat, 13 Sep 2014 20:38:26 +0000 (22:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Sep 2014 16:49:11 +0000 (12:49 -0400)
commit61cd2ebb35dcf1990f66af76649260a79ae4cb15
tree7c5c288c7fc66c50314306e279911a6c72b54ea3
parentc0d1379a19c3dde3c32be50164997d246241c1e4
net: fec: use container_of to resolve bufdesc_ex from bufdesc

Use container_of instead of casting first structure member.

ARM cross-compiled but untested.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c