Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3059676rwb; Thu, 29 Sep 2022 20:21:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6FiHEGpkXIazufwQJED62GiCitK4r+MtZGuA6+53Qy3DgCto/iQb5zXWXADzY/COEgMUUC X-Received: by 2002:a17:902:ea11:b0:178:1c19:b0f5 with SMTP id s17-20020a170902ea1100b001781c19b0f5mr6676370plg.152.1664508083781; 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=y04YLouo3xRCYvm4Rf4yWZzAd9RamjwQBlar3nw7hV0lAJrZbr+mhaJCAYFQPwJs66 f9ddQwblnCRuBQyQ3P+/xsPlOwk6psoPgqNHRk+8jeSBE0TDx7uXVCyFRY4LL8ZTItO6 UGS5vrmfcQfLF4glm8qC1nyVATzfW56DWdXz+jd49RnmH12tUULFQvbttoIKoPWlt8Du 7TFS9BuHENxx5RTQNaIiZv2TQPBkFxwhujCWaTMMVoMpcKDOtXDhFzIhynnjGztY0ASL T7NRTXg0E3rptGMD5/+dMKwTWiw92riOPbZVHCsMuYM1Jx/Ghh1e5a1p2l5HqZBhxGFS JA+g== 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=iBuhYgC+mpgPfViAP5ONEucKpJSmklpEOkNuhdolKOiyie94933L6GQOteafgv5ZRa IoNfkB/IV87Sif48oQWYeO/pK1WJtc9mrzIg3U0hZlVfDVRAwYwtyrRyD5zyIDlDGxd/ oz4HbpWWBv/9nIE7w/sp7gJliGqKl4nY2HOKOujj5b+qO1XkS+wCzRAdroDnKvRjeF9q G7owUPE8OGC0v2GinayqYhJ3Q3uQkxiKABLdSONDqZOIGsouMAbN0JQE62AjBKTiM7UF 1mwZAkynEkcEnV+XNM9gw8n0hnnWWsjoaPTb9P3hDd6Z6m0E/JXV6j0YSbeaAeFKfvme 4wLw== 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 u5-20020a170903124500b0017280be5a02si1884699plh.589.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 S229688AbiI3CzS (ORCPT + 99 others); Thu, 29 Sep 2022 22:55:18 -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 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