Skip to contentSkip to conversation

staging: greybus: fix some formatting issues

PATCH In review Wang Qing 2 participants 2 messages May 18, 2021

Subsystems (3)
lore
Share & tools
lore

Wang Qing

author
#0 lore raw

PATCH 1/1 staging: greybus: fix some formatting issues

fixing WARNING: void function return statements are not generally useful

---
 drivers/staging/greybus/audio_codec.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/greybus/audio_codec.c +0 -1
index b589cf6..ffd8997
@@ -1028,7 +1028,6 @@ static int gbcodec_probe(struct snd_soc_component *comp)
 static void gbcodec_remove(struct snd_soc_component *comp)
 {
 	/* Empty function for now */
-	return;
 }
 
 static int gbcodec_write(struct snd_soc_component *comp, unsigned int reg,
Signature · 1 line
2.7.4
#1 lore raw
Quoted 12 lines · Wang Qing

fixing WARNING: void function return statements are not generally useful

---
 drivers/staging/greybus/audio_codec.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/greybus/audio_codec.c +0 -0
index b589cf6..ffd8997

drivers/staging/greybus/audio_codec.c static int gbcodec_probe(struct snd_soc_component *comp) · line 1031

Quoted 5 lines
drivers/staging/greybus/audio_codec.c +0 -1
@@ -1028,7 +1028,6 @@ static int gbcodec_probe(struct snd_soc_component *comp)
 static void gbcodec_remove(struct snd_soc_component *comp)
 {
 	/* Empty function for now */
-	return;
 }

This is called from snd_soc_component_remove(). Just delete the whole function. It's unclear why there are so many dummy functions in this driver...

regards,
dan carpenter