RE: [PATCH] bluetooth/btmrl_sdio.c: Fix compile warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Javier,

> -----Original Message-----
> From: Javier Martinez Canillas [mailto:martinez.javier@xxxxxxxxx]
> Sent: Friday, October 30, 2009 10:49 PM
> To: Marcel Holtmann; Bing Zhao; Rahul Tank; Julia Lawall; linux-bluetooth@xxxxxxxxxxxxxxx; kernel-
> janitors@xxxxxxxxxxxxxxx
> Subject: [PATCH] bluetooth/btmrl_sdio.c: Fix compile warning
> 
> In linux-next 20091030 I got this compile warning:
> 
> drivers/bluetooth/btmrvl_sdio.c: In function ‘btmrvl_sdio_verify_fw_download’:
> drivers/bluetooth/btmrvl_sdio.c:79: warning: ‘fws1’ may be used uninitialized in this function
> drivers/bluetooth/btmrvl_sdio.c:79: note: ‘fws1’ was declared here
> 
> This patch solves the issue.

Your patch is valid.

Thanks,

Bing

> 
> Signed-off-by: Javier Martinez Canillas <martinez.javier@xxxxxxxxx>
> ---
>  drivers/bluetooth/btmrvl_sdio.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
> index 5b33b85..41d64fd 100644
> --- a/drivers/bluetooth/btmrvl_sdio.c
> +++ b/drivers/bluetooth/btmrvl_sdio.c
> @@ -76,7 +76,7 @@ static int btmrvl_sdio_get_rx_unit(struct btmrvl_sdio_card *card)
> 
>  static int btmrvl_sdio_read_fw_status(struct btmrvl_sdio_card *card, u16 *dat)
>  {
> -	u8 fws0, fws1;
> +	u8 fws0, fws1 = 0;
>  	int ret;
> 
>  	*dat = 0;
> --
> 1.6.0.4
> 
> 

��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�m


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux