Skip to contentSkip to conversation

staging: greybus: Remove useless return statement.

PATCH In review Elise Lennion 1 participant 1 message Oct 11, 2016

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

PATCH 4/7 staging: greybus: Remove useless return statement.

Fix checkpatch warning:

WARNING: void function return statements are not generally useful

This return statement is immediately followed by the closing bracket of the function and serves no purpose.

---
 drivers/staging/greybus/audio_codec.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/greybus/audio_codec.c +0 -1
index 8a0744b..0be7991 100644
@@ -405,7 +405,6 @@ static void gbcodec_shutdown(struct snd_pcm_substream *substream,
 	params->state = GBAUDIO_CODEC_SHUTDOWN;
 	mutex_unlock(&codec->lock);
 	pm_relax(dai->dev);
-	return;
 }
 
 static int gbcodec_hw_params(struct snd_pcm_substream *substream,
Signature · 1 line
2.7.4