mISDN: use kstrdup() in dsp_pipeline_build
authorGeliang Tang <geliangtang@163.com>
Mon, 12 Oct 2015 08:19:07 +0000 (01:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Oct 2015 01:29:50 +0000 (18:29 -0700)
commitc3643885aa8a3c7cff3ba3269337f39361d76f76
tree2966f6a46a49d415ca042793185cd49a833fe6e0
parent4bdc3d66147b3a623b32216a45431d0cff005f50
mISDN: use kstrdup() in dsp_pipeline_build

Use kstrdup instead of strlen-kmalloc-strcpy. Remove unneeded NULL
test, it will be tested inside kstrdup. Remove 0 length string test,
it has been tested in the caller of dsp_pipeline_build.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/dsp_pipeline.c