mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
net: wireless: bcmdhd: Fix compile warning when CONFIG_BCMDHD_REQUEST_FW=y
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_common.c:7852:50: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
DHD_ERROR(("fw->size = %d, *length = %d\n", fw->size, *length));
~~ ^~~~~~~~
%lu
Fixes: 6513b9fbdd ("net: wireless: update bcmdhd driver to 101.10.361.20")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia2cce87e3392174f8a6165494e1c7962ae07bd93
This commit is contained in:
@@ -7849,7 +7849,7 @@ int dhd_get_download_buffer(dhd_pub_t *dhd, char *file_path, download_type_t com
|
||||
goto err;
|
||||
} else {
|
||||
if ((fw->size <= 0 || fw->size > *length)) {
|
||||
DHD_ERROR(("fw->size = %d, *length = %d\n", fw->size, *length));
|
||||
DHD_ERROR(("fw->size = %zu, *length = %d\n", fw->size, *length));
|
||||
*length = fw->size;
|
||||
goto err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user