From: Mathieu Desnoyers Date: Mon, 5 Oct 2020 16:01:37 +0000 (-0400) Subject: Cleanup: lttng-syscalls: silence warning about uninitialized bitmap variable X-Git-Tag: v2.13.0-rc1~164 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6d9694d898fc076439d07323db1e0f730b5fe9e6;p=lttng-modules.git Cleanup: lttng-syscalls: silence warning about uninitialized bitmap variable Signed-off-by: Mathieu Desnoyers --- diff --git a/src/lttng-syscalls.c b/src/lttng-syscalls.c index 6d0f3554..9a72245c 100644 --- a/src/lttng-syscalls.c +++ b/src/lttng-syscalls.c @@ -1059,7 +1059,6 @@ int lttng_syscall_filter_enable(struct lttng_channel *chan, if (syscall_nr < 0) return -ENOENT; - switch (event->u.syscall.entryexit) { case LTTNG_SYSCALL_ENTRY: switch (event->u.syscall.abi) { @@ -1069,6 +1068,8 @@ int lttng_syscall_filter_enable(struct lttng_channel *chan, case LTTNG_SYSCALL_ABI_COMPAT: bitmap = filter->sc_compat_entry; break; + default: + return -EINVAL; } break; case LTTNG_SYSCALL_EXIT: @@ -1079,6 +1080,8 @@ int lttng_syscall_filter_enable(struct lttng_channel *chan, case LTTNG_SYSCALL_ABI_COMPAT: bitmap = filter->sc_compat_exit; break; + default: + return -EINVAL; } break; default: @@ -1115,7 +1118,6 @@ int lttng_syscall_filter_disable(struct lttng_channel *chan, if (syscall_nr < 0) return -ENOENT; - switch (event->u.syscall.entryexit) { case LTTNG_SYSCALL_ENTRY: switch (event->u.syscall.abi) { @@ -1125,6 +1127,8 @@ int lttng_syscall_filter_disable(struct lttng_channel *chan, case LTTNG_SYSCALL_ABI_COMPAT: bitmap = filter->sc_compat_entry; break; + default: + return -EINVAL; } break; case LTTNG_SYSCALL_EXIT: @@ -1135,6 +1139,8 @@ int lttng_syscall_filter_disable(struct lttng_channel *chan, case LTTNG_SYSCALL_ABI_COMPAT: bitmap = filter->sc_compat_exit; break; + default: + return -EINVAL; } break; default: