From 9d767db81c356cea18c9a6c9765731281d7ad779 Mon Sep 17 00:00:00 2001 From: benyamin-codez <115509179+benyamin-codez@users.noreply.github.com> Date: Sun, 22 Dec 2024 02:15:14 +1100 Subject: [PATCH] [vioscsi] Extend VioScsiReadRegistryParameter() Addendum to 100af3e. 1. Removed references to obsoleted RUN_MIN_CHECKED definition (PR #1228). 2. Add comment to conditionally excluded variable. Signed-off-by: benyamin-codez <115509179+benyamin-codez@users.noreply.github.com> --- vioscsi/vioscsi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vioscsi/vioscsi.c b/vioscsi/vioscsi.c index fc5e7a745..6c41fd999 100755 --- a/vioscsi/vioscsi.c +++ b/vioscsi/vioscsi.c @@ -316,13 +316,13 @@ BOOLEAN VioScsiReadRegistryParameter( CHAR hba_id_as_str[4] = { 0 }; USHORT shAdapterId = (USHORT)adaptExt->hba_id; #if !defined(RUN_UNCHECKED) - ULONG value_as_ulong; + ULONG value_as_ulong; // Only used in tracing. #endif /* Get a clean buffer to store the registry value... */ pBuffer = StorPortAllocateRegistryBuffer(DeviceExtension, &pBufferLength); if (pBuffer == NULL) { - #if !defined(RUN_UNCHECKED) || defined(RUN_MIN_CHECKED) + #if !defined(RUN_UNCHECKED) RhelDbgPrint(TRACE_LEVEL_WARNING, " StorPortAllocateRegistryBuffer failed to allocate buffer\n"); #endif return FALSE; @@ -636,13 +636,13 @@ ENTER_FN(); RtlZeroMemory(adaptExt, sizeof(ADAPTER_EXTENSION)); adaptExt->dump_mode = IsCrashDumpMode; - #if !defined(RUN_UNCHECKED) || defined(RUN_MIN_CHECKED) + #if !defined(RUN_UNCHECKED) RhelDbgPrint(TRACE_LEVEL_INFORMATION, " Crash dump mode : %s \n", (adaptExt->dump_mode == IsCrashDumpMode) ? "ACTIVATED" : "NOT ACTIVATED"); #endif /* Set the hba_id to the StorPort supplied SlotNumber minus one. Used as an analogue for the system PortNumber. */ adaptExt->hba_id = (CCHAR)ConfigInfo->SlotNumber - 1; - #if !defined(RUN_UNCHECKED) || defined(RUN_MIN_CHECKED) + #if !defined(RUN_UNCHECKED) RhelDbgPrint(TRACE_LEVEL_INFORMATION, " HBA ID [adaptExt->hba_id] : %I64d \n", adaptExt->hba_id); #endif