udp: remove redundant variable
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Wed, 10 Feb 2010 20:26:19 +0000 (20:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Feb 2010 00:51:10 +0000 (16:51 -0800)
commit81d54ec8479a2c695760da81f05b5a9fb2dbe40a
tree4a7da65da1b418e1e18291ddae807fad83dca1f0
parent55d955902a7f78e3e7c9ddbc71a4a050d9d44810
udp: remove redundant variable

The variable 'copied' is used in udp_recvmsg() to emphasize that the passed
'len' is adjusted to fit the actual datagram length. But the same can be
done by adjusting 'len' directly. This patch thus removes the indirection.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv6/udp.c