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.
Signed-off-by: Javier Martinez Canillas <[email protected]>
---
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
SGkgSmF2aWVyLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEphdmll
ciBNYXJ0aW5leiBDYW5pbGxhcyBbbWFpbHRvOm1hcnRpbmV6LmphdmllckBnbWFpbC5jb21dDQo+
IFNlbnQ6IEZyaWRheSwgT2N0b2JlciAzMCwgMjAwOSAxMDo0OSBQTQ0KPiBUbzogTWFyY2VsIEhv
bHRtYW5uOyBCaW5nIFpoYW87IFJhaHVsIFRhbms7IEp1bGlhIExhd2FsbDsgbGludXgtYmx1ZXRv
b3RoQHZnZXIua2VybmVsLm9yZzsga2VybmVsLQ0KPiBqYW5pdG9yc0B2Z2VyLmtlcm5lbC5vcmcN
Cj4gU3ViamVjdDogW1BBVENIXSBibHVldG9vdGgvYnRtcmxfc2Rpby5jOiBGaXggY29tcGlsZSB3
YXJuaW5nDQo+IA0KPiBJbiBsaW51eC1uZXh0IDIwMDkxMDMwIEkgZ290IHRoaXMgY29tc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