]> git.karo-electronics.de Git - linux-beck.git/commit
staging: cxt1e1: remove redundant memset() call
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 14 Mar 2014 09:08:43 +0000 (18:08 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:22:47 +0000 (14:22 -0700)
commit5ddd113297288d521faeb551ea575513dfb37828
treed25ff9db8647d9a2d7217819203736f71133c6d4
parent14eec444302c97a692a9cdc556f7590355610f92
staging: cxt1e1: remove redundant memset() call

The banner array doens't need to set to 0.
sprintf() adds a terminating '\0'.

And the sn array can be declared and initialized to zero.
So remove redundant memset() with zero.

Remove unnecessary cast for memcpy().

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/cxt1e1/hwprobe.c