From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63548C433FE for ; Fri, 30 Sep 2022 02:55:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229538AbiI3CzT (ORCPT ); Thu, 29 Sep 2022 22:55:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiI3CzP (ORCPT ); Thu, 29 Sep 2022 22:55:15 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 34EB7E5FB7 for ; Thu, 29 Sep 2022 19:55:14 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 5A8901E80CB6; Fri, 30 Sep 2022 10:50:38 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kHO6gwH_WmzC; Fri, 30 Sep 2022 10:50:35 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: junming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 33E351E80CB5; Fri, 30 Sep 2022 10:50:34 +0800 (CST) From: shijm To: tiwai@suse.com Cc: Linux-kernel@vger.kernel.org, junming@nfs-china.com, Shi junming Subject: [PATCH] sound:remove unnecessary conversions Date: Fri, 30 Sep 2022 10:55:05 +0800 Message-Id: <20220930025505.10431-1-junming@nfschina.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shi junming remove unnecessary conversions Signed-off-by: Shi junming --- 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