From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> drivers/ata/pata_it821x.c: In function 'it821x_port_start': drivers/ata/pata_it821x.c:609: warning: 'mtype' may be used uninitialized in this function Pretty horrid fix, but so's a warning.. Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/ata/pata_it821x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/ata/pata_it821x.c~drivers-ata-pata_it821xc-fix-warning drivers/ata/pata_it821x.c --- a/drivers/ata/pata_it821x.c~drivers-ata-pata_it821xc-fix-warning +++ a/drivers/ata/pata_it821x.c @@ -619,9 +619,9 @@ static void it821x_display_disk(int n, u ata_id_c_string((u16 *)buf, id, 0, 41); + mtype = "UDMA"; if (buf[51]) { mode = ffs(buf[51]); - mtype = "UDMA"; } else if (buf[49]) { mode = ffs(buf[49]); mtype = "MWDMA"; _ -- 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