ASoC: Intel: sst: remove unused 'msg_high'
authorVinod Koul <vinod.koul@intel.com>
Thu, 8 Dec 2016 17:31:25 +0000 (23:01 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 15 Dec 2016 11:20:04 +0000 (11:20 +0000)
In process_fw_async_msg(), a variable 'msg_high' is initialized but
not used. So remove it.

sound/soc/intel/atom/sst/sst_ipc.c: In function ‘process_fw_async_msg’:
sound/soc/intel/atom/sst/sst_ipc.c:263:24: warning: variable ‘msg_high’ set but not used [-Wunused-but-set-variable]
  union ipc_header_high msg_high;

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_ipc.c

index 374bb61c596d8f928c3b76ea33be0be1a3cf37d9..14c2d9d1818010fd8fcb1192a79873808b7107b2 100644 (file)
@@ -260,10 +260,8 @@ static void process_fw_async_msg(struct intel_sst_drv *sst_drv_ctx,
        u32 data_size, i;
        void *data_offset;
        struct stream_info *stream;
-       union ipc_header_high msg_high;
        u32 msg_low, pipe_id;
 
-       msg_high = msg->mrfld_header.p.header_high;
        msg_low = msg->mrfld_header.p.header_low_payload;
        msg_id = ((struct ipc_dsp_hdr *)msg->mailbox_data)->cmd_id;
        data_offset = (msg->mailbox_data + sizeof(struct ipc_dsp_hdr));