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

Commit 87b45591 authored by Satya Durga Srinivasu Prabhala's avatar Satya Durga Srinivasu Prabhala
Browse files

msm: Fix warning in sensors ADSP driver with GCC 4.7 toolchain



Fixes below warning - could be potentially a bug as well.

arch/arm/mach-msm/sensors_adsp.c:877:39: warning: argument to 'sizeof' \
in 'memcpy' call is the same expression as the source; did you mean to \
dereference it? [-Wsizeof-pointer-memaccess]

Change-Id: I8e624b44120719d7359416a36912d0ef56f49982
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
parent 4bb26321
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -874,7 +874,7 @@ static int sns_ocmem_map_send(void)

	vectors = ocmem_get_vectors(SNS_OCMEM_CLIENT_ID, sns_ctl.buf);
	if ((vectors != NULL)) {
		memcpy(&msg.vectors, vectors, sizeof(vectors));
		memcpy(&msg.vectors, vectors, sizeof(*vectors));
		/* TODO: set vectors_len */
		msg.vectors_valid = true;
		msg.vectors_len = 0;