Re: [PATCH] drivers/ata/libata-eh.c: fix unused variable warning

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

 



On 04/21/2010 10:07 AM, Fang Wenqi wrote:
   CC      drivers/ata/libata-eh.o
drivers/ata/libata-eh.c: In function ‘ata_eh_analyze_ncq_error’:
drivers/ata/libata-eh.c:1642: warning: ‘tf.flags’ may be used uninitialized in this function

Signed-off-by: Fang Wenqi<antonf@xxxxxxxxxxxxxxxxx>
---
  drivers/ata/libata-eh.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 9f6cfac..125ec25 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -1601,7 +1601,7 @@ void ata_eh_analyze_ncq_error(struct ata_link *link)
  	struct ata_eh_context *ehc =&link->eh_context;
  	struct ata_device *dev = link->device;
  	struct ata_queued_cmd *qc;
-	struct ata_taskfile tf;
+	struct ata_taskfile uninitialized_var(tf);
  	int tag, rc;

NAK - the warning reflects an actual bug.


--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux