From: shijm <junming@nfschina.com>
To: tiwai@suse.com
Cc: Linux-kernel@vger.kernel.org, Shi junming <junming@nfschina.com>
Subject: [PATCH] sound:remove unnecessary conversions
Date: Fri, 30 Sep 2022 10:52:44 +0800 [thread overview]
Message-ID: <20220930025244.9762-1-junming@nfschina.com> (raw)
From: Shi junming <junming@nfschina.com>
remove unnecessary conversions
Signed-off-by: Shi junming <junming@nfschina.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
next reply other threads:[~2022-09-30 2:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-30 2:52 shijm [this message]
2022-09-30 8:23 ` Takashi Iwai
2022-09-30 2:55 shijm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220930025244.9762-1-junming@nfschina.com \
--to=junming@nfschina.com \
--cc=Linux-kernel@vger.kernel.org \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®