Florent Revest dba4a9256b net: Remove the err argument from sock_from_file
Currently, the sock_from_file prototype takes an "err" pointer that is
either not set or set to -ENOTSOCK IFF the returned socket is NULL. This
makes the error redundant and it is ignored by a few callers.

This patch simplifies the API by letting callers deduce the error based
on whether the returned socket is NULL or not.

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Florent Revest <revest@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: KP Singh <kpsingh@google.com>
Link: https://lore.kernel.org/bpf/20201204113609.1850150-1-revest@google.com
2020-12-04 22:32:40 +01:00
..
2020-10-30 11:59:54 -07:00
2020-10-30 11:43:42 -07:00
2020-10-30 11:34:09 -07:00
2020-11-12 17:00:13 -08:00
2020-10-28 09:14:49 -03:00
2020-11-23 17:44:11 -08:00
2020-11-13 12:03:22 -08:00
2020-10-29 19:27:45 +01:00
2020-10-29 19:27:45 +01:00