Skip to content

Commit

Permalink
mt76: mt7603: fix sparse warnings: warning: incorrect type in assignm…
Browse files Browse the repository at this point in the history
…ent (different base types)

Fix the following sparse warning in mt7603_mcu_set_eeprom:
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:376:30: sparse: warning:
incorrect type in assignment (different base types)
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:376:30: sparse:
expected unsigned short [usertype] addr
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:376:30: sparse: got
restricted __le16 [usertype]

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
Lorenzo Bianconi authored and Felix Fietkau committed Jun 27, 2019
1 parent d923cf6 commit 676fabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ int mt7603_mcu_set_eeprom(struct mt7603_dev *dev)

};
struct req_data {
u16 addr;
__le16 addr;
u8 val;
u8 pad;
} __packed;
Expand Down

0 comments on commit 676fabd

Please sign in to comment.