Skip to content
Commit 068b88cc authored by Jakub Sitnicki's avatar Jakub Sitnicki Committed by David S. Miller
Browse files

socket: Tighten no-error check in bind()



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: default avatarJakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9a694c1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment