]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8062aa7f9e7962e2a0c09868e887770cc26f2e0
tree4a7da65da1b418e1e18291ddae807fad83dca1f0
parent944152905681dd41bcfc40d33f4395b308713e7a
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