summaryrefslogtreecommitdiffstats
path: root/drivers/edac/amd64_edac.h
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2012-09-12 18:16:01 +0200
committerBorislav Petkov <bp@alien8.de>2012-11-28 11:46:19 +0100
commit0a5dfc31405d9b07a5b37f150815b9ad09685460 (patch)
treea78f995d6a3903d7612c393b76ea4ae30a09e675 /drivers/edac/amd64_edac.h
parentbb89f5a0547a56cf2406f1c3d6cd44f8fa62256d (diff)
downloadop-kernel-dev-0a5dfc31405d9b07a5b37f150815b9ad09685460.zip
op-kernel-dev-0a5dfc31405d9b07a5b37f150815b9ad09685460.tar.gz
amd64_edac: Use DBAM_DIMM macro
Instead of open-coding it, use the DBAM_DIMM macro in amd64_csrow_nr_pages() which we have already. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/amd64_edac.h')
-rw-r--r--drivers/edac/amd64_edac.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h
index abefab4..e864f40 100644
--- a/drivers/edac/amd64_edac.h
+++ b/drivers/edac/amd64_edac.h
@@ -219,7 +219,7 @@
#define DBAM1 0x180
/* Extract the DIMM 'type' on the i'th DIMM from the DBAM reg value passed */
-#define DBAM_DIMM(i, reg) ((((reg) >> (4*i))) & 0xF)
+#define DBAM_DIMM(i, reg) ((((reg) >> (4*(i)))) & 0xF)
#define DBAM_MAX_VALUE 11
OpenPOWER on IntegriCloud