Cleanup: lttng-syscalls: silence warning about uninitialized bitmap variable
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 Oct 2020 16:01:37 +0000 (12:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 Oct 2020 16:01:37 +0000 (12:01 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lttng-syscalls.c

index 6d0f3554509a74304a6db6cd74210a9c1bb9a6db..9a72245cc705a7f79f1f1c709a3ed71808cdd9f9 100644 (file)
@@ -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:
This page took 0.027978 seconds and 4 git commands to generate.