login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
May
»
27
Re: [PATCH] [condingstyle] Add chapter on tests
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Guennadi Liakhovetski <g.liakhovetski@...>
To: Jan Engelhardt <jengelh@...>
Cc: Auke Kok <auke-jan.h.kok@...>, <randy.dunlap@...>, Linux Kernel Mailing List <linux-kernel@...>
Subject:
Re: [PATCH] [condingstyle] Add chapter on tests
Date: Sunday, May 27, 2007 - 5:01 pm
On Sat, 26 May 2007, Jan Engelhardt wrote:
quoted text
> +Testing for a flag, as done in the following example, is redundant and > +can be shortened. > + > + if ((v & GFP_KERNEL) == GFP_KERNEL) > + return; > + > +should become > + > + if (v & GFP_KERNEL) > + return;
This looks wrong to me. These two are only equivalent if the "flag" only has 1 bit. And already here you fall into this trap: #define GFP_KERNEL (__GFP_WAIT | __GFP_IO | __GFP_FS) Thanks Guennadi --- Guennadi Liakhovetski -
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 1/2] [CodingStyle] Add comment to not put spaces befo...
, Auke Kok
, (Fri May 25, 1:25 pm)
Re: [PATCH 1/2] [CodingStyle] Add comment to not put spaces ...
, Stefan Richter
, (Fri May 25, 1:32 pm)
Re: [PATCH 1/2] [CodingStyle] Add comment to not put spaces ...
, H. Peter Anvin
, (Fri May 25, 3:43 pm)
Re: [PATCH 1/2] [CodingStyle] Add comment to not put spaces ...
, Kok, Auke
, (Fri May 25, 4:29 pm)
Re: [PATCH 1/2] [CodingStyle] Add comment to not put spaces ...
, H. Peter Anvin
, (Fri May 25, 5:26 pm)
[PATCH 2/2] [condingstyle] Add chapter on tests
, Auke Kok
, (Fri May 25, 1:25 pm)
Re: [PATCH 2/2] [condingstyle] Add chapter on tests
, Jesper Juhl
, (Sun May 27, 12:08 pm)
Re: [PATCH 2/2] [condingstyle] Add chapter on tests
, Jan Engelhardt
, (Sat May 26, 3:27 pm)
Re: [PATCH 2/2] [condingstyle] Add chapter on tests
, Kok, Auke
, (Sun May 27, 2:04 pm)
Re: [PATCH 2/2] [condingstyle] Add chapter on tests
, Pekka Enberg
, (Sun May 27, 4:17 pm)
[PATCH] [condingstyle] Add chapter on tests
, Jan Engelhardt
, (Sat May 26, 4:13 pm)
Re: [PATCH] [condingstyle] Add chapter on tests
, Guennadi Liakhovetski
, (Sun May 27, 5:01 pm)
Re: [PATCH] [condingstyle] Add chapter on tests
, Stefan Richter
, (Sun May 27, 10:37 am)
Re: [PATCH] [condingstyle] Add chapter on tests
, Jan Engelhardt
, (Sun May 27, 11:02 am)
Re: [PATCH] [condingstyle] Add chapter on tests
, Stefan Richter
, (Sun May 27, 11:23 am)
Re: [PATCH] [condingstyle] Add chapter on tests
, Jan Engelhardt
, (Sun May 27, 11:52 am)
Re: [PATCH] [condingstyle] Add chapter on tests
, Scott Preece
, (Sat May 26, 6:35 pm)
Re: [PATCH 2/2] [condingstyle] Add chapter on tests
, Stefan Richter
, (Fri May 25, 1:34 pm)
Re: [PATCH 2/2] [condingstyle] Add chapter on tests
, Kok, Auke
, (Fri May 25, 1:40 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Gabriel C
Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS]
Benjamin Herrenschmidt
Re: [PATCH] Remove process freezer from suspend to RAM pathway
Linus Torvalds
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Pavel Machek
suspend2 merge (was Re: [Suspend2-devel] Re: CFS and suspend2: hang in atomic copy)
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 34/37] dccp: Auto-load (when supported) CCID plugins for negotiation
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Vlad Yasevich
[PATCH 1/4] sctp: Drop ICMP packet too big message with MTU larger than current PMTU
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
948 guests
online.
Online users
maheshdm
strcmp
Syndicate