Skip to content

Commit 1ce9662

Browse files
tlebkuba-moo
authored andcommitted
net: macb: apply reverse christmas tree in macb_tx_map()
The arguments grew over time; follow conventions and apply reverse christmas tree (RCT). Signed-off-by: Théo Lebrun <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b5fe4f3 commit 1ce9662

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/ethernet/cadence/macb_main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,14 +1988,14 @@ static unsigned int macb_tx_map(struct macb *bp,
19881988
struct sk_buff *skb,
19891989
unsigned int hdrlen)
19901990
{
1991-
dma_addr_t mapping;
1991+
unsigned int f, nr_frags = skb_shinfo(skb)->nr_frags;
19921992
unsigned int len, i, tx_head = queue->tx_head;
1993+
u32 ctrl, lso_ctrl = 0, seq_ctrl = 0;
1994+
unsigned int eof = 1, mss_mfs = 0;
19931995
struct macb_tx_skb *tx_skb = NULL;
19941996
struct macb_dma_desc *desc;
19951997
unsigned int offset, size;
1996-
unsigned int f, nr_frags = skb_shinfo(skb)->nr_frags;
1997-
unsigned int eof = 1, mss_mfs = 0;
1998-
u32 ctrl, lso_ctrl = 0, seq_ctrl = 0;
1998+
dma_addr_t mapping;
19991999

20002000
/* LSO */
20012001
if (skb_shinfo(skb)->gso_size != 0) {

0 commit comments

Comments
 (0)