ASoC: soc-cache: A few minor stylistic changes
PATCH 1/1 ASoC: soc-cache: A few minor stylistic changes
Remove redundant parentheses/spaces in the use of the sizeof operator.
Signed-off-by Dimitris Papastamos <[email protected]>
--- sound/soc/soc-cache.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
sound/soc/soc-cache.c +7 -7
@@ -85,7 +85,7 @@ static int snd_soc_4_12_spi_write(void *control_data, const char *data, msg[1 ] = data[0 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;
@@ -166,7 +166,7 @@ static int snd_soc_7_9_spi_write(void *control_data, const char *data, msg[1 ] = data[1 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;
@@ -246,7 +246,7 @@ static int snd_soc_8_8_spi_write(void *control_data, const char *data, msg[1 ] = data[1 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;
@@ -326,7 +326,7 @@ static int snd_soc_8_16_spi_write(void *control_data, const char *data, msg[2 ] = data[2 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;
@@ -513,7 +513,7 @@ static int snd_soc_16_8_spi_write(void *control_data, const char *data, msg[2 ] = data[2 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;
@@ -633,7 +633,7 @@ static int snd_soc_16_16_spi_write(void *control_data, const char *data, msg[3 ] = data[3 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;
@@ -1342,7 +1342,7 @@ static int snd_soc_lzo_cache_init(struct snd_soc_codec *codec)* that register. */ bmp_size = codec_drv->reg_cache_size; - sync_bmp =kmalloc (BITS_TO_LONGS (bmp_size) *sizeof (long ), + sync_bmp =kmalloc (BITS_TO_LONGS (bmp_size) *sizeof (long ),GFP_KERNEL );if (!sync_bmp) { ret = -ENOMEM ;
Signature · 1 line
1.7.3.3
Quoted 4 lines · Dimitris Papastamos
Remove redundant parentheses/spaces in the use of the sizeof operator.
Signed-off-by Dimitris Papastamos <[email protected]>
Acked-by Liam Girdwood <[email protected]>
Quoted 71 lines
--- sound/soc/soc-cache.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)sound/soc/soc-cache.c +7
-7@@ -85,7 +85,7 @@ static int snd_soc_4_12_spi_write(void *control_data, const char *data, msg[1 ] = data[0 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;@@ -166,7 +166,7 @@ static int snd_soc_7_9_spi_write(void *control_data, const char *data, msg[1 ] = data[1 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;@@ -246,7 +246,7 @@ static int snd_soc_8_8_spi_write(void *control_data, const char *data, msg[1 ] = data[1 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;@@ -326,7 +326,7 @@ static int snd_soc_8_16_spi_write(void *control_data, const char *data, msg[2 ] = data[2 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;@@ -513,7 +513,7 @@ static int snd_soc_16_8_spi_write(void *control_data, const char *data, msg[2 ] = data[2 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;@@ -633,7 +633,7 @@ static int snd_soc_16_16_spi_write(void *control_data, const char *data, msg[3 ] = data[3 ];spi_message_init (&m); -memset (&t,0 , (sizeof t)); +memset (&t,0 ,sizeof t); t.tx_buf = &msg[0 ]; t.len = len;@@ -1342,7 +1342,7 @@ static int snd_soc_lzo_cache_init(struct snd_soc_codec *codec)* that register. */ bmp_size = codec_drv->reg_cache_size; - sync_bmp =kmalloc (BITS_TO_LONGS (bmp_size) *sizeof (long ), + sync_bmp =kmalloc (BITS_TO_LONGS (bmp_size) *sizeof (long ),GFP_KERNEL );if (!sync_bmp) { ret = -ENOMEM ;
Mark Brown
AppliedQuoted 4 lines · Dimitris Papastamos
Remove redundant parentheses/spaces in the use of the sizeof operator.
Signed-off-by Dimitris Papastamos <[email protected]>
Applied, thanks.