Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3059675rwb; Thu, 29 Sep 2022 20:21:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM72KpkuWUyOVYLHGPn5zQgUt6wE/BZhbntG7vizaMRCtbpSYs/JWf6WjqPiajZEmx5/jmEv X-Received: by 2002:a17:90b:3ec9:b0:203:246e:4370 with SMTP id rm9-20020a17090b3ec900b00203246e4370mr19436666pjb.221.1664508083778; Thu, 29 Sep 2022 20:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664508083; cv=none; d=google.com; s=arc-20160816; b=sLf/TPSZcwBJR85J3rPYdOuJD5ysDEfhbg4QcOKoTZgck+4m6oMPeIrjqCc7OwMsvP Fw1pLJA3kREj/5ryZPhbj0fEaXmNtKOOxmQbW6iaCGSt9LNGiuWstO4+wWkDZoiO+vjs eaXYkn08lYUsrHqNNOX845yf/eZWUHtjdKx/RYus+jaEVanF5of0MLOLPXRu82aHG0SO tsTpBYVO2vf54B0kb9YcIEetLD3Wd4kj3IbdnWet6HA3CWz+7WXtU/sjJ/wBg20GlHaT xkO4eGB34tejvYk1D0tLDfFNLK4pcY+zsIHkDaw95VG8hc8tIa9FU78zV2DZjRwrofG/ ww4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=nC8gwPTDz6WoL+tIA4Ei3qI+KmH6Yv/hMyAvfHNY9Zc=; b=VDlSSTzaXSGO6MGy3DOfsIOhYGQIhFUv9uPC02sCMHhEV+tiom9WWXClWmfLnd9dqw ONp2bWKyRU/tJT+wTNQEjH5z7d7VflyyhfHCE8lSenm+jTi8R7MDEQGLxYXrIGODATta z3HrULQdb0sctQDce+BNH40N7fhwdDsaoLxOr1TJAacQTds4gLst0oux8w5L98fBDEro ZlbSpfMBH1KZMZ9GX5giAx2SLWFmGBVght7jim6AC8mRk3ctZz7hkCg/jnfdw4EemCmc ooBJkeKVtXqk4wMz3fT4hlzG23FGModaD205cfBpp4snveKhceuk8yKFQ+aKK8RN7LfH puEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a170902eed300b001754410b705si1615125plb.268.2022.09.29.20.21.12; Thu, 29 Sep 2022 20:21:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbiI3CxG (ORCPT + 99 others); Thu, 29 Sep 2022 22:53:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbiI3CxC (ORCPT ); Thu, 29 Sep 2022 22:53:02 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 64CFE1005C5 for ; Thu, 29 Sep 2022 19:52:59 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 6A8121E80CB9; Fri, 30 Sep 2022 10:48:18 +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 RdOshU7HhtFu; Fri, 30 Sep 2022 10:48:15 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: junming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id F0BAE1E80CB5; Fri, 30 Sep 2022 10:48:14 +0800 (CST) From: shijm To: tiwai@suse.com Cc: Linux-kernel@vger.kernel.org, Shi junming Subject: [PATCH] sound:remove unnecessary conversions Date: Fri, 30 Sep 2022 10:52:44 +0800 Message-Id: <20220930025244.9762-1-junming@nfschina.com> X-Mailer: git-send-email 2.11.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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