aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/misc/owl-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/misc/owl-loader.c b/target/linux/generic/files/drivers/misc/owl-loader.c
index 5cbee79740..a4e55ad7b1 100644
--- a/target/linux/generic/files/drivers/misc/owl-loader.c
+++ b/target/linux/generic/files/drivers/misc/owl-loader.c
@@ -75,7 +75,7 @@ static int ath9k_pci_fixup(struct pci_dev *pdev, const u16 *cal_data,
/* set pointer to first reg address */
for (data = (const void *) (cal_data + 3);
- (const void *) data <= cal_end && data->reg != ~0;
+ (const void *) data <= cal_end && data->reg != (u16)~0;
data++) {
u32 val;
u16 reg;