From: Jiri Slaby Date: Wed, 17 Jun 2009 23:27:48 +0000 (-0700) Subject: Char: isicom: fix build warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9653a69e923522050e15dab042b163dcc2ed7111;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Char: isicom: fix build warning Fix this: isicom.c: In function `isicom_probe': isicom.c:1587: warning: `signature' may be used uninitialized in this function by uninitialized_var(), because if the signature is not initialized in reset_card(), we won't use it. Signed-off-by: Jiri Slaby Cc: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c index 4d745a89504f..4159292e35cf 100644 --- a/drivers/char/isicom.c +++ b/drivers/char/isicom.c @@ -1593,7 +1593,7 @@ static unsigned int card_count; static int __devinit isicom_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { - unsigned int signature, index; + unsigned int uninitialized_var(signature), index; int retval = -EPERM; struct isi_board *board = NULL;