[HAL:HALPPC] HalAllocateCrashDumpRegisters(): Remove redundant MapRegisterNumber...
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Mon, 25 May 2020 16:58:17 +0000 (18:58 +0200)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 16:58:17 +0000 (18:58 +0200)
Detected by CppCheck: redundantAssignment.
Addendum to commit 81f09273 (r28793).

hal/halppc/generic/dma.c

index 92e76bc..fd50a00 100644 (file)
@@ -1979,7 +1979,6 @@ HalAllocateCrashDumpRegisters(IN PADAPTER_OBJECT AdapterObject,
         }
 
         /* Try to find free map registers */
-        MapRegisterNumber = MAXULONG;
         MapRegisterNumber = RtlFindClearBitsAndSet(MasterAdapter->MapRegisters,
                                                    *NumberOfMapRegisters,
                                                    0);