diff options
author | Jeff Garzik <jeff@garzik.org> | 2008-08-22 06:33:23 (GMT) |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-08-22 06:33:23 (GMT) |
commit | 4ef281853474389fea952e9e59650e599ecf2d62 (patch) | |
tree | 4a0178b9bf9a081abe11e0e06cd8288c3338b7c4 | |
parent | b15b3ebae102f89c25ccbcae0b2099af312f2e82 (diff) | |
download | linux-fsl-qoriq-4ef281853474389fea952e9e59650e599ecf2d62.tar.xz |
[libata] pata_it821x: fix warning
Reported by Andrew Morton:
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..
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r-- | drivers/ata/pata_it821x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index 27843c7..0221c9a 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c @@ -606,7 +606,7 @@ static void it821x_display_disk(int n, u8 *buf) { unsigned char id[41]; int mode = 0; - char *mtype; + char *mtype = ""; char mbuf[8]; char *cbl = "(40 wire cable)"; |