aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/baytrail/sst-baytrail-ipc.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-06 20:41:19 +0900
committerTakashi Iwai <tiwai@suse.de>2016-09-07 20:35:29 +0200
commit44cc4a017e2df87f25765ac270f3f64efc6b06ef (patch)
treead55e8dffc16bc00492aab005320c870c22f384f /sound/soc/intel/baytrail/sst-baytrail-ipc.c
parentALSA: pcm: Fix avail to return error if stream is suspended (diff)
downloadlinux-dev-44cc4a017e2df87f25765ac270f3f64efc6b06ef.tar.xz
linux-dev-44cc4a017e2df87f25765ac270f3f64efc6b06ef.zip
ALSA: squash lines for simple wrapper functions
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/intel/baytrail/sst-baytrail-ipc.c')
-rw-r--r--sound/soc/intel/baytrail/sst-baytrail-ipc.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sound/soc/intel/baytrail/sst-baytrail-ipc.c b/sound/soc/intel/baytrail/sst-baytrail-ipc.c
index 5bbaa667bec1..c8455b47388b 100644
--- a/sound/soc/intel/baytrail/sst-baytrail-ipc.c
+++ b/sound/soc/intel/baytrail/sst-baytrail-ipc.c
@@ -184,15 +184,9 @@ struct sst_byt {
static inline u64 sst_byt_header(int msg_id, int data, bool large, int str_id)
{
- u64 header;
-
- header = IPC_HEADER_MSG_ID(msg_id) |
- IPC_HEADER_STR_ID(str_id) |
- IPC_HEADER_LARGE(large) |
- IPC_HEADER_DATA(data) |
- SST_BYT_IPCX_BUSY;
-
- return header;
+ return IPC_HEADER_MSG_ID(msg_id) | IPC_HEADER_STR_ID(str_id) |
+ IPC_HEADER_LARGE(large) | IPC_HEADER_DATA(data) |
+ SST_BYT_IPCX_BUSY;
}
static inline u16 sst_byt_header_msg_id(u64 header)