Skip to content

Commit 9471d1f

Browse files
jithu83nashif
authored andcommitted
samples: event_collector: Remove redundant check
Removes a redundant check flagged by coverity. Coverity-CID: 152005 Change-Id: I8cc3a64c42e04a2d52deed11d9022ed4a49baaa7 Signed-off-by: Jithu Joseph <[email protected]>
1 parent 09f4f54 commit 9471d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/legacy/kernel_event_logger/microkernel/src/kernel_event_collector_sample.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void register_context_switch_data(uint32_t timestamp, uint32_t thread_id)
110110

111111
void register_interrupt_event_data(uint32_t timestamp, uint32_t irq)
112112
{
113-
if ((irq >= 0) && (irq < 255)) {
113+
if (irq < 255) {
114114
interrupt_counters[irq] += 1;
115115
}
116116
}

0 commit comments

Comments
 (0)