* [PATCH] radeonfb: Fix warnings about uninitialized variables
@ 2004-09-15 7:21 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-09-15 7:21 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linus Torvalds, Linux Kernel list
Hi !
This patch fixes a couple of warnings about possible uninitialized
variables in radeonfb, along with a small logic error in the monitor
probe code when nothing was found.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
===== drivers/video/aty/radeon_base.c 1.28 vs edited =====
--- 1.28/drivers/video/aty/radeon_base.c 2004-09-13 14:05:55 +10:00
+++ edited/drivers/video/aty/radeon_base.c 2004-09-15 17:20:16 +10:00
@@ -1868,7 +1868,7 @@
#undef SET_MC_FB_FROM_APERTURE
static void fixup_memory_mappings(struct radeonfb_info *rinfo)
{
- u32 save_crtc_gen_cntl, save_crtc2_gen_cntl;
+ u32 save_crtc_gen_cntl, save_crtc2_gen_cntl = 0;
u32 save_crtc_ext_cntl;
u32 aper_base, aper_size;
u32 agp_base;
===== drivers/video/aty/radeon_monitor.c 1.7 vs edited =====
--- 1.7/drivers/video/aty/radeon_monitor.c 2004-05-17 01:59:32 +10:00
+++ edited/drivers/video/aty/radeon_monitor.c 2004-09-15 17:19:25 +10:00
@@ -69,8 +69,10 @@
mt = MT_DFP;
else if (!strcmp(pmt, "CRT"))
mt = MT_CRT;
- else if (strcmp(pmt, "NONE")) {
- printk(KERN_WARNING "radeonfb: Unknown OF display-type: %s\n", pmt);
+ else {
+ if (strcmp(pmt, "NONE") != 0)
+ printk(KERN_WARNING "radeonfb: Unknown OF display-type: %s\n",
+ pmt);
return MT_NONE;
}
for (i = 0; propnames[i] != NULL; ++i) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-15 7:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-15 7:21 [PATCH] radeonfb: Fix warnings about uninitialized variables Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox