Thread (70 messages) flat view 70 messages, 7 authors, 2011-08-31

Re: [Cbe-oss-dev] [PATCH part1 v2 4/9] Add region 1 memory early

From: Geoff Levand <geoff@infradead.org>
Date: 2011-08-24 02:15:52

Hi Antonio,

On 08/23/2011 03:37 PM, Antonio Ospite wrote:
Geoff Levand [off-list ref] wrote:
quoted
quoted
+	if (!map.r1.size) {
+		DBG("%s:%d: no region 1, not adding memory\n",
+			__func__, __LINE__);
+	} else {
Remove brackets around a single line conditional.
quoted
+		DBG("%s:%d: adding memory: start %llxh, size %llxh\n",
+			__func__, __LINE__, map.rm.size, map.r1.size);
+
+		memblock_add(map.rm.size, map.r1.size);
+		memblock_analyze();
+	}
+
In Documentation/CodingStyle I read that if [only] one branch is a
single statement then the parenthesis are OK (and even recommended) for
both branches, I guess this is for style consistency. See Chapter 3,
around line 169 on my copy. I guess the wording on that paragraph can
be made more explicit, I'll try to fix that up.
Thanks for the comments.  I don't think its such an important change,
mainly for consistency of style within the PS3 files.

-Geoff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help