ASoC: Fix checkpatch issues in AD1938

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Mark Brown
2009-07-18 11:09:42 +01:00
parent 0c11f65555
commit bca146578c

View File

@@ -45,7 +45,6 @@
struct ad1938_priv { struct ad1938_priv {
struct snd_soc_codec codec; struct snd_soc_codec codec;
u8 reg_cache[AD1938_NUM_REGS]; u8 reg_cache[AD1938_NUM_REGS];
}; };
static struct snd_soc_codec *ad1938_codec; static struct snd_soc_codec *ad1938_codec;
@@ -337,7 +336,8 @@ static int ad1938_write_reg(struct snd_soc_codec *codec, unsigned int reg,
buf[2] = value; buf[2] = value;
spi_message_init(&m); spi_message_init(&m);
spi_message_add_tail(&t, &m); spi_message_add_tail(&t, &m);
if((ret = spi_sync(codec->control_data, &m)) == 0) ret = spi_sync(codec->control_data, &m);
if (ret == 0)
reg_cache[reg] = value; reg_cache[reg] = value;
} }