From: Rasmus Villemoes Date: Wed, 9 Sep 2015 22:08:45 +0000 (+0200) Subject: wmi: Remove private %pUL implementation X-Git-Tag: omap-for-v4.3/fixes-rc5~118^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c;p=pandora-kernel.git wmi: Remove private %pUL implementation The work performed by wmi_gtoa is equivalent to simply sprintf(out, "%pUL", in), so one could replace its body by this. However, most users feed the result directly as a %s argument to some other function which also understands the %p extensions (they all ultimately use vsnprintf), so we can eliminate some stack buffers and quite a bit of code by just using %pUL directly. In wmi_dev_uevent I'm not sure whether there's room for a nul-terminator in env->buf, so I've just replaced wmi_gtoa with the equivalent sprintf call. Signed-off-by: Rasmus Villemoes Signed-off-by: Darren Hart --- Reading git-diff-tree failed