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

Use container_of instead of casting first structure member.

Compiled but untested.

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