Commit 4ef28185 authored by Jeff Garzik's avatar Jeff Garzik Committed by Jeff Garzik

[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: default avatarJeff Garzik <jgarzik@redhat.com>
parent b15b3eba
...@@ -606,7 +606,7 @@ static void it821x_display_disk(int n, u8 *buf) ...@@ -606,7 +606,7 @@ static void it821x_display_disk(int n, u8 *buf)
{ {
unsigned char id[41]; unsigned char id[41];
int mode = 0; int mode = 0;
char *mtype; char *mtype = "";
char mbuf[8]; char mbuf[8];
char *cbl = "(40 wire cable)"; char *cbl = "(40 wire cable)";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment