Skip to contentSkip to conversation

sound:remove unnecessary conversions

PATCH New shijm 1 participant 1 message Sep 30, 2022 Sound

lore
Share & tools
lore

shijm

author
#0 lore raw

PATCH 1/1 sound:remove unnecessary conversions

From: Shi junming <[email protected]>

remove unnecessary conversions

---
 include/sound/pcm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/sound/pcm.h +2 -2
index 6b99310b5b88..0530cfa08892 100644
@@ -1344,7 +1344,7 @@ snd_pcm_sgbuf_get_chunk_size(struct snd_pcm_substream *substream,
  */
 static inline void snd_pcm_mmap_data_open(struct vm_area_struct *area)
 {
-	struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data;
+	struct snd_pcm_substream *substream = area->vm_private_data;
 	atomic_inc(&substream->mmap_count);
 }
 
@@ -1356,7 +1356,7 @@ static inline void snd_pcm_mmap_data_open(struct vm_area_struct *area)
  */
 static inline void snd_pcm_mmap_data_close(struct vm_area_struct *area)
 {
-	struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data;
+	struct snd_pcm_substream *substream = area->vm_private_data;
 	atomic_dec(&substream->mmap_count);
 }
 
Signature · 1 line
2.18.2