From: Alan Stern Date: Thu, 7 Dec 2006 04:32:37 +0000 (-0800) Subject: [PATCH] Allow NULL pointers in percpu_free X-Git-Tag: v2.6.20-rc1~145^2^2~329 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a120586873d3d64de93bd6d593d237e131994e58;p=pandora-kernel.git [PATCH] Allow NULL pointers in percpu_free The patch (as824b) makes percpu_free() ignore NULL arguments, as one would expect for a deallocation routine. (Note that free_percpu is #defined as percpu_free in include/linux/percpu.h.) A few callers are updated to remove now-unneeded tests for NULL. A few other callers already seem to assume that passing a NULL pointer to percpu_free() is okay! The patch also removes an unnecessary NULL check in percpu_depopulate(). Signed-off-by: Alan Stern Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed