[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFSsvmrZ3adzO_eNTc_ZWB3QGpfjPybj6O=x1-=a9=02pSG2qw@mail.gmail.com>
Date: Wed, 20 Aug 2014 11:18:21 -0600
From: Adam Duskett <aduskett@...il.com>
To: linux-kernel@...r.kernel.org
Subject: amd_mce.c redundant if check?
I have recently come upon this section of code in
arch/x86/kernel/cpu/mcheck/mce_amd.c that seems to be a redundant
unnecessary if check.
>From line 170 - 176:
if (tr->set_lvt_off) {
if (lvt_off_valid(tr->b, tr->lvt_off, lo, hi)) {
/* set new lvt offset */
hi &= ~MASK_LVTOFF_HI;
hi |= tr->lvt_off << 20;
}
}
This seems like it's not actually doing anything because it's setting
the same value that the bit-field already has to itself.
Any reason for this?
Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists