summaryrefslogtreecommitdiffstats
path: root/drivers/clk/ti/clk.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2019-06-13 20:18:48 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-20 14:23:24 +0200
commit743344a952fcebee9ca4d783807cf1f03f933baf (patch)
treed556f09ff7d66327f4eb06ba3edc5aa426893f85 /drivers/clk/ti/clk.c
parentd46a6024c709a7f3057e512b1e836e816ace1143 (diff)
downloadblackbird-op-linux-743344a952fcebee9ca4d783807cf1f03f933baf.tar.gz
blackbird-op-linux-743344a952fcebee9ca4d783807cf1f03f933baf.zip
usb: renesas_usbhs: Use struct assignment instead of memcpy()
To avoid the error-proneness of calls to sizeof() in the memcpy, this patch uses struct assignment instead of memcpy. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Reviewed-by: Simon Horman <horms+renesas@verge.net.au>--- This patch is based on Greg's linux-usb.git / usb-next branch. Note that mod_host.c also has memcpy but we cannot use struct assignment for it because the type of urb->setup_patcket is just "unsigned char *". drivers/usb/renesas_usbhs/common.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/clk/ti/clk.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud