diff options
| author | Robert P. J. Day <[email protected]> | 2008-07-25 08:45:31 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-07-25 17:53:27 +0000 |
| commit | fd193829744bc77392395cf8f47889235c97f0a3 (patch) | |
| tree | 05e2612ee5d824cb679f4a236b14907b828b6888 /lib/list_debug.c | |
| parent | init/: delete hard-coded setting and testing of BUILD_CRAMDISK (diff) | |
| download | kernel-fd193829744bc77392395cf8f47889235c97f0a3.tar.gz kernel-fd193829744bc77392395cf8f47889235c97f0a3.zip | |
lib: allow memparse() to accept a NULL and ignorable second parm
Extend memparse() to allow the caller to use a NULL second parameter, which
would represent no interest in returning the address of the end of the parsed
string.
In numerous cases, callers invoke memparse() to parse a possibly-suffixed
string (such as "64K" or "2G" or whatever) and define a character pointer to
accept the end pointer being returned by memparse() even though they have no
interest in it and promptly throw it away.
This (backward-compatible) enhancement allows callers to use NULL in the cases
where they just don't care about getting back that end pointer.
[[email protected]: coding-style fixes]
Signed-off-by: Robert P. J. Day <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions
