All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/ata/libata-eh.c: fix unused variable warning
@ 2010-04-21 14:07 Fang Wenqi
  2010-04-21 14:24 ` Alan Cox
  2010-04-23  1:54 ` Jeff Garzik
  0 siblings, 2 replies; 13+ messages in thread
From: Fang Wenqi @ 2010-04-21 14:07 UTC (permalink / raw)
  To: jgarzik, linux-ide; +Cc: antonf, anton.fang

  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@turbolinux.com.cn>
---
 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;
 
 	/* if frozen, we can't do much */
-- 
1.6.6.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-04-23 14:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 14:07 [PATCH] drivers/ata/libata-eh.c: fix unused variable warning Fang Wenqi
2010-04-21 14:24 ` Alan Cox
2010-04-21 14:57   ` Fang Wenqi
2010-04-22  1:23     ` Fang Wenqi
2010-04-23  6:30       ` Tejun Heo
2010-04-23  6:43         ` Jeff Garzik
2010-04-23  7:01           ` Tejun Heo
2010-04-23 13:52             ` Jeff Garzik
2010-04-23 14:02               ` Tejun Heo
2010-04-23 14:07               ` Sergei Shtylyov
2010-04-23 14:18                 ` Jeff Garzik
2010-04-23  6:48         ` Fang Wenqi
2010-04-23  1:54 ` Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.