platform/x86: wmi: Replace kmalloc + sprintf() with kasprintf()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 16 Feb 2018 15:40:24 +0000 (17:40 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 19 Feb 2018 15:03:43 +0000 (17:03 +0200)
commit7f166addbebdcaeefe36997d5b8dceb96c5619fa
treed66206c1b447f0b842c0d684ce0a219432e0b0d1
parent04e4e888558ebe5d9701e31bba61d4e256ab71a8
platform/x86: wmi: Replace kmalloc + sprintf() with kasprintf()

kasprintf() does the job of two: kmalloc() and sprintf().
Replace two calls with one.

Reviewed-by: Darren Hart (VMware) <dvhart@infradead.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/wmi.c