ANDROID: ASoC: msm: qdsp6v2: Fix memset argument order.

With commit f6896ad1b5966405e87ef668922cadddad52f2eb, an incorrectly ordered
memset() command was present. This causes compilation to fail on GCC 5+.

Fix the order of the passed parameters to properly set requested memory.

BUG=38500815
TEST= Kernel compiles and boots bullhead.

Change-Id: Ic7cc759bb19385ad6839d2003358c7ead6df94be
Tested-by: Aun-Ali Zaidi <admin@kodeit.net>
Signed-off-by: Aun-Ali Zaidi <admin@kodeit.net>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
This commit is contained in:
Aun-Ali Zaidi 2017-05-19 19:47:37 -05:00 committed by syphyr
parent bb454f3bae
commit 2fe8a0c519

View file

@ -1423,7 +1423,7 @@ int q6lsm_set_one_param(struct lsm_client *client,
struct lsm_module_param_ids ids;
u8 *packet;
memset(&ids, sizeof(ids), 0);
memset(&ids, 0, sizeof(ids));
switch (param_type) {
case LSM_ENDPOINT_DETECT_THRESHOLD: {
ids.module_id = p_info->module_id;