]> 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)
commit9e3b8bd321b882054c4407f0ce843d9d4e89aa0f
treee25bdf668486a6cf811fc25ad656b7173325a69d
parent67bf82d740e5fa8016297b483cb1d5191d8eee2a
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