summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorTobin C. Harding <me@tobin.cc>2017-04-10 06:15:50 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-11 17:05:50 +0300
commitb121d84882b97b8668be0b95e9ba50cfd01aa0f1 (patch)
treed3e538eebfd6374b05871558eef8682cacb6ee1a /scripts/const_structs.checkpatch
parent9ff19a6e35ab460c07dc40c563b57b0ad866e2e9 (diff)
downloadlinux-b121d84882b97b8668be0b95e9ba50cfd01aa0f1.tar.xz
staging: ks7010: simplify calls to memcpy()
Function uses overly complex calls to memcpy(). Code may be simplified by the use of a local variable. Code sometimes uses explicit address of initial array element and sometimes does not. Uniformity aids readability. If array pointers are explicit it aids readability further. Simplify calls to memcpy(). Add local pointer variable, define it to the correct memory location. Use newly defined variable in calls to memcpy(). Be uniform in use of explicit address of first element of array (&foo[0]). Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions