summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/marvell/mvmap2315/mcu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/marvell/mvmap2315/mcu.c b/src/soc/marvell/mvmap2315/mcu.c
index c334cda145..e634ff8d56 100644
--- a/src/soc/marvell/mvmap2315/mcu.c
+++ b/src/soc/marvell/mvmap2315/mcu.c
@@ -31,7 +31,7 @@ static u8 mvmap2315_calc_checksum(const void *data, u32 size)
for (i = csum = 0; i < size; i++)
csum += bytes[i];
- return (~csum) && 0xFF;
+ return (~csum) & 0xFF;
}
void mcu_irq(void)