Arnd Bergmann
a7dcdf6ea1
bpf: clean up unused-variable warning
...
The only user of this variable is inside of an #ifdef, causing
a warning without CONFIG_INET:
net/core/filter.c: In function '____bpf_sock_ops_cb_flags_set':
net/core/filter.c:3382:6: error: unused variable 'val' [-Werror=unused-variable]
int val = argval & BPF_SOCK_OPS_ALL_CB_FLAGS;
This replaces the #ifdef with a nicer IS_ENABLED() check that
makes the code more readable and avoids the warning.
Fixes: b13d880721 ("bpf: Adds field bpf_sock_ops_cb_flags to tcp_sock")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
2018-02-22 01:11:20 +01:00
..
2017-11-02 11:10:55 +01:00
2018-02-15 14:29:27 -08:00
2017-11-21 15:57:07 -08:00
2018-01-16 15:01:33 -05:00
2018-01-16 15:01:33 -05:00
2018-02-11 14:34:03 -08:00
2018-01-16 15:01:33 -05:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-01 07:43:56 -08:00
2018-02-21 14:49:55 -05:00
2018-02-11 14:34:03 -08:00
2018-01-26 10:46:44 +01:00
2018-01-29 18:36:12 +01:00
2018-02-22 01:11:20 +01:00
2017-08-09 16:57:38 -07:00
2018-02-11 14:34:03 -08:00
2018-02-16 15:46:15 -05:00
2018-02-06 14:43:37 +00:00
2018-01-23 19:22:38 -05:00
2017-06-16 11:48:40 -04:00
2017-10-25 13:00:27 +09:00
2017-11-04 09:26:51 +09:00
2017-11-01 12:19:03 +09:00
2018-02-21 14:49:55 -05:00
2018-02-21 14:49:55 -05:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-10 09:45:11 +01:00
2018-01-19 15:10:23 -05:00
2017-11-21 16:35:54 -08:00
2018-01-16 15:01:33 -05:00
2018-01-22 14:03:28 +01:00
2017-11-04 09:26:51 +09:00
2018-02-08 15:24:12 -05:00
2017-12-18 14:50:11 -05:00
2018-02-19 18:28:59 +01:00
2017-11-18 10:32:41 +09:00
2018-02-08 14:03:18 -05:00
2018-01-16 15:01:33 -05:00
2018-02-16 15:16:05 -05:00
2017-11-08 16:12:33 +09:00
2018-02-01 09:46:22 -05:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2017-11-01 12:19:03 +09:00
2017-12-04 11:32:39 -05:00
2018-02-13 13:52:02 -05:00
2018-02-11 14:34:03 -08:00
2018-01-16 15:01:33 -05:00
2018-02-16 16:22:27 -05:00
2018-02-20 21:57:17 -05:00
2018-02-16 16:32:37 -05:00
2018-02-11 14:34:03 -08:00
2017-12-28 14:28:22 -05:00
2018-02-11 14:34:03 -08:00
2017-11-10 13:41:40 +09:00
2018-02-14 14:46:33 -05:00
2018-02-14 15:05:19 -05:00
2018-02-13 12:21:45 -05:00
2018-02-11 14:34:03 -08:00
2017-11-02 11:10:55 +01:00
2018-02-04 11:45:55 -08:00
2017-11-21 16:35:54 -08:00
2018-01-26 10:22:53 -05:00
2017-09-20 15:36:18 -07:00
2018-02-01 09:51:57 -08:00
2017-11-28 13:55:00 +01:00
2018-01-31 14:31:10 -08:00
2017-04-16 23:42:49 -05:00