aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hif_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hif_usb.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hif_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c
index f317515d8bf3..424aabb2c730 100644
--- a/drivers/net/wireless/ath/ath9k/hif_usb.c
+++ b/drivers/net/wireless/ath/ath9k/hif_usb.c
@@ -981,7 +981,7 @@ static int ath9k_hif_usb_download_fw(struct hif_device_usb *hif_dev)
981 return -ENOMEM; 981 return -ENOMEM;
982 982
983 while (len) { 983 while (len) {
984 transfer = min_t(int, len, 4096); 984 transfer = min_t(size_t, len, 4096);
985 memcpy(buf, data, transfer); 985 memcpy(buf, data, transfer);
986 986
987 err = usb_control_msg(hif_dev->udev, 987 err = usb_control_msg(hif_dev->udev,