https://git.reactos.org/?p=reactos.git;a=commitdiff;h=327813e7da4993e754924793d0108cb3847dc705

commit 327813e7da4993e754924793d0108cb3847dc705
Author:     Serge Gautherie <[email protected]>
AuthorDate: Mon May 25 18:58:17 2020 +0200
Commit:     GitHub <[email protected]>
CommitDate: Mon May 25 18:58:17 2020 +0200

    [HAL:HALPPC] HalAllocateCrashDumpRegisters(): Remove redundant 
MapRegisterNumber assignment (#2854)
    
    Detected by CppCheck: redundantAssignment.
    Addendum to commit 81f09273 (r28793).
---
 hal/halppc/generic/dma.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hal/halppc/generic/dma.c b/hal/halppc/generic/dma.c
index 92e76bc8c03..fd50a00d349 100644
--- a/hal/halppc/generic/dma.c
+++ b/hal/halppc/generic/dma.c
@@ -1979,7 +1979,6 @@ HalAllocateCrashDumpRegisters(IN PADAPTER_OBJECT 
AdapterObject,
         }
 
         /* Try to find free map registers */
-        MapRegisterNumber = MAXULONG;
         MapRegisterNumber = RtlFindClearBitsAndSet(MasterAdapter->MapRegisters,
                                                    *NumberOfMapRegisters,
                                                    0);

Reply via email to