Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa396f81 authored by Jeya R's avatar Jeya R
Browse files

msm: adsprpc: Typecast return value of copy_to_user API



Typecast the return value of copy_to_user API to
avoid gcc compiler warning for unused result.

Change-Id: I7212e4890ce190773dee5d688177924c0774ecc3
Signed-off-by: default avatarJeya R <jeyr@codeaurora.org>
parent db5f5ed6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* 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));\