]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: simplify access to the rx descriptor status
authorwilly tarreau <w@1wt.eu>
Thu, 16 Jan 2014 07:20:14 +0000 (08:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jan 2014 23:15:42 +0000 (15:15 -0800)
commit986077c23b13d837e0dda2f8d5c386dd92a7f870
treee25bdf668486a6cf811fc25ad656b7173325a69d
parentaac0a10f3938fab51fc7cc6ec2895a14aed68a3c
net: mvneta: simplify access to the rx descriptor status

At several places, we already know the value of the rx status but
we call functions which dereference the pointer again to get it
and don't need the descriptor for anything else. Simplify this
task by replacing the rx desc pointer by the status word itself.

Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com>
Tested-by: Arnaud Ebalard <arno@natisbad.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c