summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2011-08-19 05:52:36 +0200
committerJeff Garzik <jgarzik@pobox.com>2011-08-19 05:52:36 +0200
commitebd1699ec5f1a6f1f2df6b48fa54bc6ff790143c (patch)
tree63a0f70d383a706c852d645135ff6aa28b74dee5
parentautofs4: fix debug printk warning uncovered by cleanup (diff)
downloadlinux-ebd1699ec5f1a6f1f2df6b48fa54bc6ff790143c.tar.xz
linux-ebd1699ec5f1a6f1f2df6b48fa54bc6ff790143c.zip
[libata] sata_sil: fix used-uninit warning
Init 'serror' to silence the following warning: drivers/ata/sata_sil.c: In function ‘sil_interrupt’: drivers/ata/sata_sil.c:453:14: warning: ‘serror’ may be used uninitialized in this function [-Wuninitialized] This is not a 'can never happen' but is nonetheless extremely unlikely. The easiest and cleanest warning fix is simply to init the var, rather than worry about marking the var uninit-ok. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r--drivers/ata/sata_sil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c
index 98c1d780f552..9dfb40b8c2c9 100644
--- a/drivers/ata/sata_sil.c
+++ b/drivers/ata/sata_sil.c
@@ -438,7 +438,7 @@ static void sil_host_intr(struct ata_port *ap, u32 bmdma2)
u8 status;
if (unlikely(bmdma2 & SIL_DMA_SATA_IRQ)) {
- u32 serror;
+ u32 serror = 0xffffffff;
/* SIEN doesn't mask SATA IRQs on some 3112s. Those
* controllers continue to assert IRQ as long as