]> git.baikalelectronics.ru Git - kernel.git/commit
s2io.c: Shorten code line length by using intermediate pointers
authorJoe Perches <joe@perches.com>
Mon, 24 Aug 2009 17:29:41 +0000 (17:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2009 05:34:39 +0000 (22:34 -0700)
commit6bcea5fb1f06db72e6356c48caaf8bd6663b0730
treedf02e9b726e8f50c0d69006873989a00305ecd2e
parent55897ec4ce8ac221bc74fef939979addcb76e7ff
s2io.c: Shorten code line length by using intermediate pointers

Repeated variable use and line wrapping is hard to read.
Use temp variables instead of direct references.

struct fifo_info *fifo = &mac_control->fifos[i];
struct ring_info *ring = &mac_control->rings[i];
struct tx_fifo_config *tx_cfg = &config->tx_cfg[i];
struct rx_ring_config *rx_cfg = &config->rx_cfg[i];

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/s2io.c