staging: comedi: jr3_pci: use kasprintf
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 17 May 2013 18:16:12 +0000 (11:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 19:09:48 +0000 (12:09 -0700)
commita31e0f89cd33a9459f1ae9eb13141fb286c957ab
treed0c66d7980a2f747419c367a6f0e071a382d3d7b
parentcb560c401bf2f212167fdf3bfb15e57a78e2fa03
staging: comedi: jr3_pci: use kasprintf

kasprintf combines kmalloc and sprintf, and takes care of the size
calculation itself.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c
This page took 0.025107 seconds and 5 git commands to generate.