]> git.karo-electronics.de Git - karo-tx-linux.git/commit
skd: use memcpy() as a cleanup
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Sep 2013 12:53:10 +0000 (15:53 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Sep 2013 17:07:41 +0000 (11:07 -0600)
commit21d2e5a5e6120af929e480e7844f9e95f932f5fb
treeba72c7cc98e55c62f045968fcced8640eefeee32
parent487e90b3e347dbb5c295779ea65f6b9fe36a9271
skd: use memcpy() as a cleanup

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.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c