diff --git a/mt7915/mcu.c b/mt7915/mcu.c index 839fc3d4..9fe2fda4 100644 --- a/mt7915/mcu.c +++ b/mt7915/mcu.c @@ -3258,7 +3258,7 @@ static int mt7915_mcu_set_eeprom_flash(struct mt7915_dev *dev) struct sk_buff *skb; int ret; - if (i == total - 1 && MT7915_EEPROM_SIZE % PER_PAGE_SIZE) + if (i == total - 1 && !!(MT7915_EEPROM_SIZE % PER_PAGE_SIZE)) eep_len = MT7915_EEPROM_SIZE % PER_PAGE_SIZE; else eep_len = PER_PAGE_SIZE;