login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
24
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Josh Boyer <jwboyer@...>
To: Roel Kluin <12o3l@...>
Cc: lkml <linux-kernel@...>, <linuxppc-dev@...>, <sr@...>
Subject:
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
Date: Wednesday, January 23, 2008 - 9:17 pm
On Wed, 23 Jan 2008 23:37:33 +0100 Roel Kluin <12o3l@tiscali.nl> wrote:
quoted text
> logical/bitand typo > > Signed-off-by: Roel Kluin <12o3l@tiscali.nl> > --- > diff --git a/arch/powerpc/boot/4xx.c b/arch/powerpc/boot/4xx.c > index ebf9e21..dcfb459 100644 > --- a/arch/powerpc/boot/4xx.c > +++ b/arch/powerpc/boot/4xx.c > @@ -104,7 +104,7 @@ void ibm4xx_denali_fixup_memsize(void) > val = DDR_GET_VAL(val, DDR_CS_MAP, DDR_CS_MAP_SHIFT); > cs = 0; > while (val) { > - if (val && 0x1) > + if (val & 0x1) > cs++; > val = val >> 1; > }
Hm, good catch. Stefan, have you had problems with this code at all? josh --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Roel Kluin
, (Wed Jan 23, 6:37 pm)
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Josh Boyer
, (Wed Jan 23, 9:17 pm)
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Valentine Barshak
, (Tue Jan 29, 10:22 am)
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Stefan Roese
, (Sat Jan 26, 9:37 am)
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Joe Perches
, (Wed Jan 23, 7:05 pm)
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Roel Kluin
, (Wed Jan 23, 8:18 pm)
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Andy Whitcroft
, (Tue Jan 29, 6:55 am)
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Roel Kluin
, (Tue Jan 29, 9:34 am)
Re: [PATCH][ppc] logical/bitand typo in powerpc/boot/4xx.c
, Joe Perches
, (Wed Jan 23, 8:39 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Srivatsa Vaddagiri
containers (was Re: -mm merge plans for 2.6.23)
Benjamin Herrenschmidt
Re: [linux-pm] [PATCH] Remove process freezer from suspend to RAM pathway
git
:
linux-netdev
:
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Patrick McHardy
Re: [GIT]: Networking
Gerrit Renker
[PATCH 6/7] [CCID-2/3]: Fix sparse warnings
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
924 guests
online.
Online users
maheshdm
strcmp
Syndicate