From: Thomas Gleixner Date: Sun, 16 Aug 2009 21:05:08 +0000 (+0000) Subject: fs: Make unload_nls() NULL pointer safe X-Git-Tag: v2.6.32-rc1~58^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d729e44a55547c009d7a87ea66bff21a8e0afea;p=pandora-kernel.git fs: Make unload_nls() NULL pointer safe Most call sites of unload_nls() do: if (nls) unload_nls(nls); Check the pointer inside unload_nls() like we do in kfree() and simplify the call sites. Signed-off-by: Thomas Gleixner Cc: Steve French Cc: OGAWA Hirofumi Cc: Roman Zippel Cc: Dave Kleikamp Cc: Petr Vandrovec Cc: Anton Altaparmakov Signed-off-by: Al Viro --- Reading git-diff-tree failed