[PATCH] Bluetooth: btusb: remove set but not used variable in btusb_mtk_setup_firmware_79xx

Marcel Holtmann marcel at holtmann.org
Thu Feb 4 07:56:45 EST 2021


Hi Ye,

> Fix follow warning:
> drivers/bluetooth/btusb.c:3479:9: warning: variable ‘fw_size’ set but not used [-Wunused-but-set-variable]
>  size_t fw_size;
>         ^~~~~~~
> drivers/bluetooth/btusb.c:3473:29: warning: variable ‘patchhdr’ set but not used [-Wunused-but-set-variable]
>  struct btmtk_patch_header *patchhdr = NULL;
>                             ^~~~~~~~
> 
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Ye Bin <yebin10 at huawei.com>
> ---
> drivers/bluetooth/btusb.c | 4 ----
> 1 file changed, 4 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel




More information about the Linux-mediatek mailing list