From 36e4a77b4efb19009f059ca1c4369ceae3792f4d Mon Sep 17 00:00:00 2001 From: adrian Date: Mon, 27 Aug 2012 12:00:26 +0000 Subject: [PATCH] SimulatorController.cc: Tiny code simplification. git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1509 8c4709b5-6ec9-48aa-a5cd-a96041d1645a --- src/core/sal/SimulatorController.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/sal/SimulatorController.cc b/src/core/sal/SimulatorController.cc index a75ea5b0..87ecc262 100644 --- a/src/core/sal/SimulatorController.cc +++ b/src/core/sal/SimulatorController.cc @@ -136,13 +136,11 @@ bool SimulatorController::addSuppressedInterrupt(unsigned interruptNum) if (isSuppressedInterrupt(interruptNum+32)) return false; // already added: nothing to do here - if (interruptNum == ANY_INTERRUPT) { + if (interruptNum == ANY_INTERRUPT) m_SuppressedInterrupts.push_back(interruptNum); - return true; - } else { + else m_SuppressedInterrupts.push_back(interruptNum+32); - return true; - } + return true; } bool SimulatorController::removeSuppressedInterrupt(unsigned interruptNum)