From: Rasmus Villemoes Date: Thu, 16 Apr 2015 19:44:56 +0000 (-0700) Subject: fs/binfmt_misc.c: simplify entry_status() X-Git-Tag: omap-for-v4.1/fixes-rc1~115^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ceafb880c218a14e0cf8d08499138a1a9775fb2;p=pandora-kernel.git fs/binfmt_misc.c: simplify entry_status() sprintf() reliably returns the number of characters printed, so we don't need to ask strlen() where we are. Also replace calling sprintf("%02x") in a loop with the much simpler bin2hex(). [akpm@linux-foundation.org: it's odd to include kernel.h after everything else] Signed-off-by: Rasmus Villemoes Cc: Al Viro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed