Re: [PATCH 2/4 linux-next] bna: use container_of to resolve bufdesc_ex from bufdesc

2014-09-15 Thread David Miller
From: Fabian Frederick Date: Sat, 13 Sep 2014 22:38:27 +0200 > Use container_of instead of casting first structure member. > > Compiled but untested. > > Signed-off-by: Fabian Frederick Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messag

[PATCH 2/4 linux-next] bna: use container_of to resolve bufdesc_ex from bufdesc

2014-09-13 Thread Fabian Frederick
Use container_of instead of casting first structure member. Compiled but untested. Signed-off-by: Fabian Frederick --- drivers/net/ethernet/brocade/bna/bna_enet.c | 9 ++--- drivers/net/ethernet/brocade/bna/bna_tx_rx.c | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git