In function aty128_var_to_pll moving block to where it should be.
This also fixed following compilation warning:
CC [M] drivers/video/aty/aty128fb.o
drivers/video/aty/aty128fb.c: In function ‘aty128_decode_var’:
drivers/video/aty/aty128fb.c:1520: warning: ‘pll.post_divider’ may be used uninitialized in this function
Signed-off-by: Jaswinder Singh Rajput <redacted>
---
drivers/video/aty/aty128fb.c | 33 ++++++++++++++++-----------------
1 files changed, 16 insertions(+), 17 deletions(-)
--
1.6.4.4
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2009-09-20 22:24:55
On Sun, 2009-09-20 at 13:44 +0530, Jaswinder Singh Rajput wrote:
In function aty128_var_to_pll moving block to where it should be.
This also fixed following compilation warning:
CC [M] drivers/video/aty/aty128fb.o
drivers/video/aty/aty128fb.c: In function ‘aty128_decode_var’:
drivers/video/aty/aty128fb.c:1520: warning: ‘pll.post_divider’ may be used uninitialized in this function
I dislike moving pretty much the whole function 2 indentation levels to
the right just because gcc is being silly.
If you really want to silence that warning, just initialize the value
Ben.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
Hello Ben,
On Mon, 2009-09-21 at 08:19 +1000, Benjamin Herrenschmidt wrote:
On Sun, 2009-09-20 at 13:44 +0530, Jaswinder Singh Rajput wrote:
quoted
In function aty128_var_to_pll moving block to where it should be.
This also fixed following compilation warning:
CC [M] drivers/video/aty/aty128fb.o
drivers/video/aty/aty128fb.c: In function ‘aty128_decode_var’:
drivers/video/aty/aty128fb.c:1520: warning: ‘pll.post_divider’ may be used uninitialized in this function
I dislike moving pretty much the whole function 2 indentation levels to
the right just because gcc is being silly.
Indentation is not an issue if I am not breaking any lines. I am moving
the function where it should be and avoid unnecessary goto(break) and
duplicate checking 'if (i == ARRAY_SIZE(post_dividers))'.
If you really want to silence that warning, just initialize the value
I am trying to save some CPU cycles and you are suggesting to add some
more ;-)
--
JSR
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2009-09-22 00:37:56
On Mon, 2009-09-21 at 18:27 +0530, Jaswinder Singh Rajput wrote:
Indentation is not an issue if I am not breaking any lines. I am
moving
the function where it should be and avoid unnecessary goto(break) and
duplicate checking 'if (i == ARRAY_SIZE(post_dividers))'.
Where it "should be" is a matter of taste :-)
quoted
If you really want to silence that warning, just initialize the
value
quoted
I am trying to save some CPU cycles and you are suggesting to add some
more ;-)
Saving CPU cycles in the mode setting code ? :-)
Anyway, Paul maintains this driver afaik so it's his call :-)
Cheers,
Ben.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf