diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-23 12:12:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-23 12:12:26 -0400 |
commit | 57d19e80f459dd845fb3cfeba8e6df8471bac142 (patch) | |
tree | 8254766715720228db3d50f1ef3c7fe003c06d65 /drivers/base/memory.c | |
parent | ee9ec4f82049c678373a611ce20ac67fe9ad836e (diff) | |
parent | e64851f5a0ad6ec991f74ebb3108c35aa0323d5f (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (39 commits)
b43: fix comment typo reqest -> request
Haavard Skinnemoen has left Atmel
cris: typo in mach-fs Makefile
Kconfig: fix copy/paste-ism for dell-wmi-aio driver
doc: timers-howto: fix a typo ("unsgined")
perf: Only include annotate.h once in tools/perf/util/ui/browsers/annotate.c
md, raid5: Fix spelling error in comment ('Ofcourse' --> 'Of course').
treewide: fix a few typos in comments
regulator: change debug statement be consistent with the style of the rest
Revert "arm: mach-u300/gpio: Fix mem_region resource size miscalculations"
audit: acquire creds selectively to reduce atomic op overhead
rtlwifi: don't touch with treewide double semicolon removal
treewide: cleanup continuations and remove logging message whitespace
ath9k_hw: don't touch with treewide double semicolon removal
include/linux/leds-regulator.h: fix syntax in example code
tty: fix typo in descripton of tty_termios_encode_baud_rate
xtensa: remove obsolete BKL kernel option from defconfig
m68k: fix comment typo 'occcured'
arch:Kconfig.locks Remove unused config option.
treewide: remove extra semicolons
...
Diffstat (limited to 'drivers/base/memory.c')
-rw-r--r-- | drivers/base/memory.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c index 0a134a424a37..9f9b2359f718 100644 --- a/drivers/base/memory.c +++ b/drivers/base/memory.c | |||
@@ -389,15 +389,14 @@ memory_probe_store(struct class *class, struct class_attribute *attr, | |||
389 | ret = add_memory(nid, phys_addr, | 389 | ret = add_memory(nid, phys_addr, |
390 | PAGES_PER_SECTION << PAGE_SHIFT); | 390 | PAGES_PER_SECTION << PAGE_SHIFT); |
391 | if (ret) | 391 | if (ret) |
392 | break; | 392 | goto out; |
393 | 393 | ||
394 | phys_addr += MIN_MEMORY_BLOCK_SIZE; | 394 | phys_addr += MIN_MEMORY_BLOCK_SIZE; |
395 | } | 395 | } |
396 | 396 | ||
397 | if (ret) | 397 | ret = count; |
398 | count = ret; | 398 | out: |
399 | 399 | return ret; | |
400 | return count; | ||
401 | } | 400 | } |
402 | static CLASS_ATTR(probe, S_IWUSR, NULL, memory_probe_store); | 401 | static CLASS_ATTR(probe, S_IWUSR, NULL, memory_probe_store); |
403 | 402 | ||