tg3: Make tg3_rings_reset() more concise
authorNithin Sujir <nsujir@broadcom.com>
Thu, 23 May 2013 11:11:24 +0000 (11:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 May 2013 05:23:29 +0000 (22:23 -0700)
commit328947ff2609989fefe6dfd1143cc0787a5ec862
tree2f8fd2845c570efad56f6e908c8232bc49d4a6ff
parent32ba19efc08a4bd63590310f05da5ce4d8773508
tg3: Make tg3_rings_reset() more concise

Simplify the rings reset function and increase readability by moving the
control block disable code into separate functions.

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c