powerpc/pseries: replace kmalloc + strlcpy
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Oct 2015 09:46:08 +0000 (12:46 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Oct 2015 10:11:26 +0000 (21:11 +1100)
commita030e1e4bbd085bbcfd0a23f8d355fcd41f39bed
tree4e02c4a9a6cfa55066206134a503f799dab9e7f9
parentdc85aaed64804205c476d06cebe4c94f66fd8a20
powerpc/pseries: replace kmalloc + strlcpy

The helper kstrndup() will do the same in one line.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/of_helpers.c