OSDN Git Service

qdsp6v2: fix -Wmaybe-uninitialized warning
authorVolodymyr Zhdanov <wight554@gmail.com>
Sun, 16 Jun 2019 08:44:34 +0000 (11:44 +0300)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 17:17:34 +0000 (01:17 +0800)
sound/soc/msm/qdsp6v2/q6adm.c

index 5478920..de0b11e 100644 (file)
@@ -1219,7 +1219,7 @@ static int adm_process_get_param_response(u32 opcode, u32 idx, u32 *payload,
        struct adm_cmd_rsp_get_pp_params_v5 *v5_rsp = NULL;
        struct adm_cmd_rsp_get_pp_params_v6 *v6_rsp = NULL;
        u32 *param_data = NULL;
-       int data_size;
+       int data_size = 0;
        int struct_size;
 
        if (payload == NULL) {