diff options
author | Lorenzo Bianconi <lorenzo.bianconi@redhat.com> | 2018-02-28 15:26:57 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-03-13 17:32:56 +0100 |
commit | 3fb2f6a4db98037890c52f12efa5c351a7bf6c77 (patch) | |
tree | 9c05e5cdf0799fd5837ff2b47b78426ecc8bba59 /drivers/net/wireless/mediatek/mt7601u | |
parent | mt76x2: add mac80211 {set,get}_antenna callbacks (diff) | |
download | linux-3fb2f6a4db98037890c52f12efa5c351a7bf6c77.tar.xz linux-3fb2f6a4db98037890c52f12efa5c351a7bf6c77.zip |
mt7601u: remove a warning in mt7601u_efuse_physical_size_check()
Fix the following sparse warning in mt7601u_efuse_physical_size_check:
- drivers/net/wireless/mediatek/mt7601u/eeprom.c:77:27: warning:
Variable length array is used
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt7601u')
-rw-r--r-- | drivers/net/wireless/mediatek/mt7601u/eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt7601u/eeprom.c b/drivers/net/wireless/mediatek/mt7601u/eeprom.c index 05d729be0c65..76117b402880 100644 --- a/drivers/net/wireless/mediatek/mt7601u/eeprom.c +++ b/drivers/net/wireless/mediatek/mt7601u/eeprom.c @@ -75,7 +75,7 @@ static int mt7601u_efuse_physical_size_check(struct mt7601u_dev *dev) { const int map_reads = DIV_ROUND_UP(MT_EFUSE_USAGE_MAP_SIZE, 16); - u8 data[map_reads * 16]; + u8 data[round_up(MT_EFUSE_USAGE_MAP_SIZE, 16)]; int ret, i; u32 start = 0, end = 0, cnt_free; |