Merge "msm: adsprpc: Typecast return value of copy_to_user API"

This commit is contained in:
qctecmdr 2021-02-15 06:09:15 -08:00 • committed by Gerrit - the friendly Code Review server
commit 250cb427bd

View file

@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
*/
#ifndef ADSPRPC_SHARED_H
#define ADSPRPC_SHARED_H
@ -138,7 +138,7 @@ do {\
#define K_COPY_TO_USER_WITHOUT_ERR(kernel, dst, src, size) \
do {\
if (!(kernel))\
copy_to_user((void __user *)(dst),\
(void)copy_to_user((void __user *)(dst),\
(src), (size));\
else\
memmove((dst), (src), (size));\