net: fix documentation for kernel_getsockname
authorAlex Maydanik <alexander.maydanik@gmail.com>
Sat, 12 Feb 2022 10:29:27 +0000 (12:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2022 14:01:19 +0000 (14:01 +0000)
commit0fc95dec096c2133942c382396172ae4487b4d57
tree8d72344fa437975bc1a59a891943128f05dbac56
parent5891cd5ec46c2c2eb6427cb54d214b149635dd0e
net: fix documentation for kernel_getsockname

Fixes return value documentation of kernel_getsockname()
and kernel_getpeername() functions.

The previous documentation wrongly specified that the return
value is 0 in case of success, however sock->ops->getname returns
the length of the address in bytes in case of success.

Signed-off-by: Alex Maydanik <alexander.maydanik@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c