linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers: video: i740fb: add 'default' processing contents for 'switch'.
@ 2013-07-22  8:45 Chen Gang
  2013-08-30  7:21 ` Tomi Valkeinen
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Chen Gang @ 2013-07-22  8:45 UTC (permalink / raw)
  To: linux-fbdev

Need add related 'default' processing contents for 'switch', or may
report 'wm' uninitialized warning.

The related warning:

  drivers/video/i740fb.c:662:26: warning: ‘wm’ may be used uninitialized in this function [-Wmaybe-uninitialized]


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 drivers/video/i740fb.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/video/i740fb.c b/drivers/video/i740fb.c
index 6c48388..e82e767 100644
--- a/drivers/video/i740fb.c
+++ b/drivers/video/i740fb.c
@@ -336,6 +336,9 @@ static u32 i740_calc_fifo(struct i740fb_par *par, u32 freq, int bpp)
 				wm = 0x16110000;
 		}
 		break;
+	default:
+		wm = 0;
+		BUG();
 	}
 
 	return wm;
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-09-02  6:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22  8:45 [PATCH] drivers: video: i740fb: add 'default' processing contents for 'switch' Chen Gang
2013-08-30  7:21 ` Tomi Valkeinen
2013-08-30  8:17 ` Chen Gang
2013-08-30  8:36 ` Tomi Valkeinen
2013-08-30  8:44 ` Chen Gang
2013-08-30  9:16 ` Tomi Valkeinen
2013-08-30  9:45 ` Chen Gang
2013-08-30 10:19 ` Tomi Valkeinen
2013-08-30 10:41 ` Chen Gang
2013-08-30 10:52 ` Tomi Valkeinen
2013-09-02  1:41 ` Chen Gang
2013-09-02  6:45 ` Tomi Valkeinen
2013-09-02  6:45 ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).