[patch 3/4 v2] skd: use memcpy() as a cleanup

2013-09-13 Thread Dan Carpenter
The code here is copying the version to inq.driver_version but we don't want it to be NUL terminated. Instead we pad the rest of the array with spaces. It's fewer lines to use memcpy() and maybe a little nicer. Signed-off-by: Dan Carpenter --- v2: use memcpy() instead of strncpy() diff --git

[patch 3/4 v2] skd: use memcpy() as a cleanup

2013-09-13 Thread Dan Carpenter
The code here is copying the version to inq.driver_version but we don't want it to be NUL terminated. Instead we pad the rest of the array with spaces. It's fewer lines to use memcpy() and maybe a little nicer. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- v2: use memcpy() instead