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:02:57 +0000 (12:02 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-syscalls.c

index 26cead68252f336221b31a3e54c9f86aeb8cdf08..49c0d81b9f2b75549ec326740d944760b13451af 100644 (file)
@@ -1057,7 +1057,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) {
@@ -1067,6 +1066,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:
@@ -1077,6 +1078,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:
@@ -1113,7 +1116,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) {
@@ -1123,6 +1125,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:
@@ -1133,6 +1137,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.028558 seconds and 4 git commands to generate.