Skip to contentSkip to conversation

staging: bcm2835-audio: fix warning of no space is necessary

PATCH In review Valery Ivanov 2 participants 2 messages Jan 26, 2020 – Jan 27, 2020

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

PATCH 1/1 staging: bcm2835-audio: fix warning of no space is necessary

This patch fixes "No space is necessary after a cast". Issue found by checkpatch.pl

---
 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c +1 -1
index 33485184a98a..997ce88c67c4 100644
@@ -237,7 +237,7 @@ static void snd_bcm2835_pcm_transfer(struct snd_pcm_substream *substream,
 {
 	struct snd_pcm_runtime *runtime = substream->runtime;
 	struct bcm2835_alsa_stream *alsa_stream = runtime->private_data;
-	void *src = (void *) (substream->runtime->dma_area + rec->sw_data);
+	void *src = (void *)(substream->runtime->dma_area + rec->sw_data);
 
 	bcm2835_audio_write(alsa_stream, bytes, src);
 }
Signature · 1 line
2.17.1
#1 lore raw
Quoted 13 lines · Valery Ivanov

This patch fixes "No space is necessary after a cast". Issue found by checkpatch.pl

---
 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c +0 -0
index 33485184a98a..997ce88c67c4 100644

drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static void snd_bcm2835_pcm_transfer(struct snd_pcm_substream *substream, · line 240

Quoted 5 lines
drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c +1 -1
@@ -237,7 +237,7 @@ static void snd_bcm2835_pcm_transfer(struct snd_pcm_substream *substream,
 {
 	struct snd_pcm_runtime *runtime = substream->runtime;
 	struct bcm2835_alsa_stream *alsa_stream = runtime->private_data;
-	void *src = (void *) (substream->runtime->dma_area + rec->sw_data);
+	void *src = (void *)(substream->runtime->dma_area + rec->sw_data);

There is no need for the cast to begin with.

regards,
dan carpenter