]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita646a062644ffebfe6de2b1699a61dec17a2b9f0
tree2966f6a46a49d415ca042793185cd49a833fe6e0
parent2629ff91ee828578404f3b084ace25b8a68bfdf9
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