lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220930025244.9762-1-junming@nfschina.com>
Date:   Fri, 30 Sep 2022 10:52:44 +0800
From:   shijm <junming@...china.com>
To:     tiwai@...e.com
Cc:     Linux-kernel@...r.kernel.org, Shi junming <junming@...china.com>
Subject: [PATCH] sound:remove unnecessary conversions

From: Shi junming <junming@...china.com>

remove unnecessary conversions

Signed-off-by: Shi junming <junming@...china.com>
---
 include/sound/pcm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 6b99310b5b88..0530cfa08892 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -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);
 }
 
-- 
2.18.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ