From a5498818f4adc0baa95940ffcb00344e3b2075a6 Mon Sep 17 00:00:00 2001 From: Visual Ehrmanntraut <30368284+VisualEhrmanntraut@users.noreply.github.com> Date: Mon, 11 Nov 2024 22:17:40 +0200 Subject: [PATCH] fix: Add missing break; statements --- SMCRadeonSensors/SMCRSCard.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SMCRadeonSensors/SMCRSCard.cpp b/SMCRadeonSensors/SMCRSCard.cpp index 4dc5e6c..c5a85f7 100644 --- a/SMCRadeonSensors/SMCRSCard.cpp +++ b/SMCRadeonSensors/SMCRSCard.cpp @@ -91,11 +91,14 @@ UInt32 SMCRSCard::readIndirectSMC(UInt32 reg) { case SMCRSChipFamily::SouthernIslands: this->writeReg32(mmSMC_IND_INDEX_0, reg); ret = this->readReg32(mmSMC_IND_DATA_0); + break; case SMCRSChipFamily::VolcanicIslands: this->writeReg32(mmSMC_IND_INDEX_11, reg); ret = this->readReg32(mmSMC_IND_DATA_11); + break; default: ret = 0xFFFFFFFF; + break; } IOLockUnlock(this->indLock); return ret;