diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-03-22 10:01:37 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-04-04 03:49:42 +0300 |
commit | 76ed2f61ae3ee5ca6e3ef155a703ab3eee1eb295 (patch) | |
tree | b48cf29c89fa1725e8e770a2370ff41be407a724 /drivers/ata/libata-sff.c | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
download | linux-76ed2f61ae3ee5ca6e3ef155a703ab3eee1eb295.tar.xz |
ata: libata-sff: Fix compilation warning in ata_sff_lost_interrupt()
When returning false, ata_sff_altstatus() does not return any status
value, resulting in a compilation warning in ata_sff_lost_interrupt()
("uninitialized symbol 'status'"). Fix this by initializing the local
variable "status" to 0.
Fixes: 03c0e84f9c1e ("ata: libata-sff: refactor ata_sff_altstatus()")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index b3be7a8f5bea..b1666adc1c3a 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -1634,7 +1634,7 @@ EXPORT_SYMBOL_GPL(ata_sff_interrupt); void ata_sff_lost_interrupt(struct ata_port *ap) { - u8 status; + u8 status = 0; struct ata_queued_cmd *qc; /* Only one outstanding command per SFF channel */ |