]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: simplify VTU entry getter
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 1 May 2017 18:05:25 +0000 (14:05 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 19:03:13 +0000 (15:03 -0400)
commit98ea212ed2b9b10d5366bd57130ead995bc20eaa
treee04d79b3ceacd29adb8f3c7c2d8655733d07468e
parent7593db9ca60fbd1b171de04d6a817fdc7d8904f9
net: dsa: mv88e6xxx: simplify VTU entry getter

Make the code which fetches or initializes a new VTU entry more concise.
This allows us the get rid of the old underscore prefix naming.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c