projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b15b3eb
)
[libata] pata_it821x: fix warning
author
Jeff Garzik
<jeff@garzik.org>
Fri, 22 Aug 2008 06:33:23 +0000
(
02:33
-0400)
committer
Jeff Garzik
<jgarzik@redhat.com>
Fri, 22 Aug 2008 06:33:23 +0000
(
02:33
-0400)
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>
drivers/ata/pata_it821x.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_it821x.c
b/drivers/ata/pata_it821x.c
index 27843c70eb9dc64e8d6292e2dc7fe2ee425bae40..0221c9a46769ad5e826485691d2718f863795eeb 100644
(file)
--- 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)";