summaryrefslogtreecommitdiffstats
path: root/Documentation/numastat.txt
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-08-07 01:10:12 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-07 03:01:26 +0200
commitbc5be1828065681300f3727ab55fac0d7ef37af3 (patch)
treec279a498e6da81b3ce6f4fd422982d430fa20883 /Documentation/numastat.txt
parentlib: bitmap: make the start index of bitmap_clear unsigned (diff)
downloadlinux-bc5be1828065681300f3727ab55fac0d7ef37af3.tar.xz
linux-bc5be1828065681300f3727ab55fac0d7ef37af3.zip
lib: bitmap: simplify bitmap_parselist
We want len to be the index of the first '\n', or the length of the string if there is no newline. This is a good example of the usefulness of strchrnul(). Use that instead, thus eliminating a branch and a call to strlen(). Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/numastat.txt')
0 files changed, 0 insertions, 0 deletions