]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: isp1760: Use kasprintf
authorHimanshu Jha <himanshujha199640@gmail.com>
Wed, 7 Mar 2018 18:38:24 +0000 (00:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 17:40:21 +0000 (09:40 -0800)
commit01812ba34a9a7756a46a54f25ba0f02e727ff35c
tree3fa4f80c0078d0eac963bfb1ca41d552fc2be68c
parent161c3bc30f3a07458f91f15e35d5b2e91fa617cc
usb: isp1760: Use kasprintf

Use kasprintf instead of combination of kmalloc and sprintf and
therefore avoid unnecessary computation of string length.
Also, remove the useless local variable.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/isp1760/isp1760-udc.c