diff options
Diffstat (limited to 'src/device/dram')
-rw-r--r-- | src/device/dram/ddr3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c index b3bcd680fe..6e5c541a85 100644 --- a/src/device/dram/ddr3.c +++ b/src/device/dram/ddr3.c @@ -52,7 +52,7 @@ static u16 crc16(const u8 *ptr, int n_crc) u16 crc = 0; while (--n_crc >= 0) { - crc = (crc ^ (int)*ptr++) << 8; + crc = crc ^ ((int)*ptr++ << 8); for (i = 0; i < 8; ++i) if (crc & 0x8000) { crc = (crc << 1) ^ 0x1021; |