Re: [PATCH net-next] socket: Tighten no-error check in bind()

2018-10-05 Thread David Miller
From: Jakub Sitnicki Date: Thu, 4 Oct 2018 11:09:40 +0200 > move_addr_to_kernel() returns only negative values on error, or zero on > success. Rewrite the error check to an idiomatic form to avoid confusing > the reader. > > Signed-off-by: Jakub Sitnicki Applied.

[PATCH net-next] socket: Tighten no-error check in bind()

2018-10-04 Thread Jakub Sitnicki
move_addr_to_kernel() returns only negative values on error, or zero on success. Rewrite the error check to an idiomatic form to avoid confusing the reader. Signed-off-by: Jakub Sitnicki --- net/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/socket.c b/net/socke