Skip to content

Commit

Permalink
[vioscsi] Extend VioScsiReadRegistryParameter()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
benyamin-codez committed Dec 21, 2024
1 parent 100af3e commit 9d767db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vioscsi/vioscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9d767db

Please sign in to comment.