]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/vmwgfx: Use kasprintf
authorHimanshu Jha <himanshujha199640@gmail.com>
Thu, 22 Mar 2018 09:33:03 +0000 (10:33 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 22 Mar 2018 11:08:24 +0000 (12:08 +0100)
commit6073a09210e06f39adabd682c282b3ee14c3d33d
treebdb272d1df41b0fa947fa35a9f5e4d1b2437068c
parent4e3e733b45df457147441b79cf2cb654c82ec402
drm/vmwgfx: Use kasprintf

Use kasprintf instead of combination of kmalloc and sprintf. Also,
remove the local variables used for storing the string length as they
are not required now.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c