nfc: fdp: drop unneeded cast for printing firmware size in dev_dbg()

Size of firmware is a type of size_t, so print it directly instead of
casting to int.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Krzysztof Kozlowski 2021-07-29 12:40:17 +02:00 committed by David S. Miller
parent 582fdc98ad
commit 6c755b1d25
1 changed files with 4 additions and 4 deletions

View File

@ -276,8 +276,8 @@ static int fdp_nci_request_firmware(struct nci_dev *ndev)
(data[FDP_FW_HEADER_SIZE + 2] << 16) | (data[FDP_FW_HEADER_SIZE + 2] << 16) |
(data[FDP_FW_HEADER_SIZE + 3] << 24); (data[FDP_FW_HEADER_SIZE + 3] << 24);
dev_dbg(dev, "RAM patch version: %d, size: %d\n", dev_dbg(dev, "RAM patch version: %d, size: %zu\n",
info->ram_patch_version, (int) info->ram_patch->size); info->ram_patch_version, info->ram_patch->size);
r = request_firmware(&info->otp_patch, FDP_OTP_PATCH_NAME, dev); r = request_firmware(&info->otp_patch, FDP_OTP_PATCH_NAME, dev);
@ -293,8 +293,8 @@ static int fdp_nci_request_firmware(struct nci_dev *ndev)
(data[FDP_FW_HEADER_SIZE+2] << 16) | (data[FDP_FW_HEADER_SIZE+2] << 16) |
(data[FDP_FW_HEADER_SIZE+3] << 24); (data[FDP_FW_HEADER_SIZE+3] << 24);
dev_dbg(dev, "OTP patch version: %d, size: %d\n", dev_dbg(dev, "OTP patch version: %d, size: %zu\n",
info->otp_patch_version, (int) info->otp_patch->size); info->otp_patch_version, info->otp_patch->size);
return 0; return 0;
} }