Blob Blame History Raw
commit d98326e8b6b2ac65ca64b1c7a71ba019232d3a7b
Author: Cong Wang <xiyou.wangcong@gmail.com>
Date:   Thu Feb 27 16:24:06 2020 -0800

    Fix a typo in ras-mc-ctl
    
    Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
index 665a042..54ab180 100755
--- a/util/ras-mc-ctl.in
+++ b/util/ras-mc-ctl.in
@@ -270,8 +270,8 @@ sub parse_dimm_nodes
         for (my $i = 1; $i < scalar(@temp); $i += 2) {
                 $pos[$i / 2] = $temp[$i];
 
-                if ($pos[$i / 2] > $max_pos[$i / 2]) {
-                $max_pos[$i / 2 + 1] = $pos[$i / 2];
+                if ($pos[$i / 2] > $max_pos[$i / 2 + 1]) {
+                        $max_pos[$i / 2 + 1] = $pos[$i / 2];
                 }
         }
         if ($mc > $max_pos[0]) {