Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: wwan: t7xx: Fix return type of t7xx_dl_add_timedout()

t7xx_dl_add_timedout() now return int 'ret', but the return type
is bool. Change the return type to int for furthor errcode upstream.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

YueHaibing and committed by
David S. Miller
b321dfaf 1dee43c2

+2 -4
+2 -4
drivers/net/wwan/t7xx/t7xx_dpmaif.c
··· 1043 1043 return value & DPMAIF_DL_RD_WR_IDX_MSK; 1044 1044 } 1045 1045 1046 - static bool t7xx_dl_add_timedout(struct dpmaif_hw_info *hw_info) 1046 + static int t7xx_dl_add_timedout(struct dpmaif_hw_info *hw_info) 1047 1047 { 1048 1048 u32 value; 1049 - int ret; 1050 1049 1051 - ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_BAT_ADD, 1050 + return ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_BAT_ADD, 1052 1051 value, !(value & DPMAIF_DL_ADD_NOT_READY), 0, 1053 1052 DPMAIF_CHECK_TIMEOUT_US); 1054 - return ret; 1055 1053 } 1056 1054 1057 1055 int t7xx_dpmaif_dl_snd_hw_bat_cnt(struct dpmaif_hw_info *hw_info, unsigned int bat_entry_cnt)