aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorRasmus Villemoes <[email protected]>2015-09-09 22:08:45 +0000
committerDarren Hart <[email protected]>2015-09-10 16:07:04 +0000
commit85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c (patch)
tree353667b0c891bf1f3bd6559db4358f63e8d07a35 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentasus-nb-wmi: Add wapf=4 quirk for X456UA/X456UF (diff)
downloadkernel-85b4e4eb2f9ac29ee8ec47f1f055f251cb251a3c.tar.gz
kernel-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 <[email protected]> Signed-off-by: Darren Hart <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions