--- zzzz-none-000/linux-3.10.107/drivers/net/wireless/ath/ath6kl/bmi.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/net/wireless/ath/ath6kl/bmi.h 2021-02-04 17:41:59.000000000 +0000 @@ -242,7 +242,8 @@ (void) (check_type == val); \ addr = ath6kl_get_hi_item_addr(ar, HI_ITEM(item)); \ ret = ath6kl_bmi_read(ar, addr, (u8 *) &tmp, 4); \ - *val = le32_to_cpu(tmp); \ + if (!ret) \ + *val = le32_to_cpu(tmp); \ ret; \ })