summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/toshiba_acpi.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-09-10 01:08:45 +0300
committerDarren Hart <dvhart@linux.intel.com>2015-09-10 19:07:04 +0300
commit85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c (patch)
tree353667b0c891bf1f3bd6559db4358f63e8d07a35 /drivers/platform/x86/toshiba_acpi.c
parent8901c18b6cafa51f7985f1031968bbfe9dc47735 (diff)
downloadlinux-85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c.tar.xz
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 <linux@rasmusvillemoes.dk> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/toshiba_acpi.c')
0 files changed, 0 insertions, 0 deletions