diff options
author | 2015-09-10 00:08:45 +0200 | |
---|---|---|
committer | 2015-09-10 09:07:04 -0700 | |
commit | 85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c (patch) | |
tree | 353667b0c891bf1f3bd6559db4358f63e8d07a35 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | asus-nb-wmi: Add wapf=4 quirk for X456UA/X456UF (diff) | |
download | wireguard-linux-85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c.tar.xz wireguard-linux-85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c.zip |
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 '')
0 files changed, 0 insertions, 0 deletions