Skip to contentSkip to conversation

ASoC: cs35l32: fix compile warning for i2c_probe

PATCH New Brian Austin 1 participant 1 message Aug 7, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: cs35l32: fix compile warning for i2c_probe

Forgot to add a return for err_disable goto statement. Causes compile warning of control reaching end of non-void

---
 sound/soc/codecs/cs35l32.c |    1 +
 1 file changed, 1 insertion(+)
sound/soc/codecs/cs35l32.c +1 -0
index 90565d5..9c6b272 100644
@@ -549,6 +549,7 @@ static int cs35l32_i2c_probe(struct i2c_client *i2c_client,
 err_disable:
 	regulator_bulk_disable(ARRAY_SIZE(cs35l32->supplies),
 			       cs35l32->supplies);
+	return ret;
 }
 
 static int cs35l32_i2c_remove(struct i2c_client *i2c_client)
Signature · 1 line
1.7.9.5