Commit 9471d1f6 authored by Jithu Joseph's avatar Jithu Joseph Committed by Anas Nashif
Browse files

samples: event_collector: Remove redundant check



Removes a redundant check flagged by coverity.

Coverity-CID: 152005

Change-Id: I8cc3a64c42e04a2d52deed11d9022ed4a49baaa7
Signed-off-by: default avatarJithu Joseph <jithu.joseph@intel.com>
parent 09f4f54e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ void register_context_switch_data(uint32_t timestamp, uint32_t thread_id)

void register_interrupt_event_data(uint32_t timestamp, uint32_t irq)
{
	if ((irq >= 0) && (irq < 255)) {
	if (irq < 255) {
		interrupt_counters[irq] += 1;
	}
}