From nobody Sat Nov 15 19:34:17 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1748179711; cv=none; d=zohomail.com; s=zohoarc; b=iywADAhqAdWeOfr8dkh5U6MhDBO0WZzkVCsWDU4cq+pJyFJordN4mw+SETH/vVu/CJXUIQnzKzD/WKLbeul9rY/zVPOrEJGIKQBcEurTXbjvGgVVvV5qxrJu26JQxp8IhBFI/U3UtYvJrM6pUv08dklXyeNpikSDVNFTG3R6ygk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1748179711; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=FLku0fleFOmUk4q9nyUVYXtVJGIVygN4ILzV4cARliE=; b=ayxt6Tztf5ACtRpbyU2cyWgugSGxlqNluNzIi+8J0UEzxK4NdmctgsibhWA+ad1G+ZCeVXhbMpCPQS2Id55O3IEdy35QLOY5+sCSF+ojgZPZBuThxZh3cvyYw62qAPtzv8Bf/aduxUx0c+pgGHfPT1kC+C4jki/isldh/VyUCSw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17481797111401013.6717304452543; Sun, 25 May 2025 06:28:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uJBOG-0007YG-QU; Sun, 25 May 2025 09:27:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uJBOE-0007XO-TN for qemu-devel@nongnu.org; Sun, 25 May 2025 09:27:46 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uJBOD-0003Lw-75 for qemu-devel@nongnu.org; Sun, 25 May 2025 09:27:46 -0400 Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-662-oLvzES_uPX-V1savboGTeQ-1; Sun, 25 May 2025 09:27:40 -0400 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F3E5219560AA; Sun, 25 May 2025 13:27:39 +0000 (UTC) Received: from localhost (unknown [10.45.242.5]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id A0081180045B; Sun, 25 May 2025 13:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1748179664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FLku0fleFOmUk4q9nyUVYXtVJGIVygN4ILzV4cARliE=; b=YZF/lpa0Y3iV+wexO3dN/7VurlVjTcdRxHveDm3N3YLSpjueUDv8LWzb6dgO3RBC5KZuxN 0xA8QGn7+kLWXyszkcbCmx5u1HglOaEMNL04FSpqTzaLLtakxrBeeuRUR3fj4I+aLaW2dg jd1n69M0VQ6CwYf6t29+p7ZarakSIP4= X-MC-Unique: oLvzES_uPX-V1savboGTeQ-1 X-Mimecast-MFC-AGG-ID: oLvzES_uPX-V1savboGTeQ_1748179660 From: marcandre.lureau@redhat.com To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?UTF-8?q?Volker=20R=C3=BCmelin?= , Gerd Hoffmann , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PULL 6/9] audio/mixeng: remove unnecessary pointer type casts Date: Sun, 25 May 2025 15:27:13 +0200 Message-ID: <20250525132717.527392-7-marcandre.lureau@redhat.com> In-Reply-To: <20250525132717.527392-1-marcandre.lureau@redhat.com> References: <20250525132717.527392-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -59 X-Spam_score: -6.0 X-Spam_bar: ------ X-Spam_report: (-6.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-2.904, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1748179713118116600 From: Volker R=C3=BCmelin A simple assignment automatically converts a void pointer type to any other pointer type. Reviewed-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Volker R=C3=BCmelin Message-Id: <20250515054429.7385-6-vr_qemu@t-online.de> --- audio/mixeng.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/audio/mixeng.c b/audio/mixeng.c index 69f6549224..13e1ff9b08 100644 --- a/audio/mixeng.c +++ b/audio/mixeng.c @@ -286,7 +286,7 @@ static const float float_scale_reciprocal =3D 1.f / ((i= nt64_t)INT32_MAX + 1); static void conv_natural_float_to_mono(struct st_sample *dst, const void *= src, int samples) { - float *in =3D (float *)src; + const float *in =3D src; =20 while (samples--) { dst->r =3D dst->l =3D CONV_NATURAL_FLOAT(*in++); @@ -297,7 +297,7 @@ static void conv_natural_float_to_mono(struct st_sample= *dst, const void *src, static void conv_natural_float_to_stereo(struct st_sample *dst, const void= *src, int samples) { - float *in =3D (float *)src; + const float *in =3D src; =20 while (samples--) { dst->l =3D CONV_NATURAL_FLOAT(*in++); @@ -314,7 +314,7 @@ t_sample *mixeng_conv_float[2] =3D { static void clip_natural_float_from_mono(void *dst, const struct st_sample= *src, int samples) { - float *out =3D (float *)dst; + float *out =3D dst; =20 while (samples--) { *out++ =3D CLIP_NATURAL_FLOAT(src->l + src->r); @@ -325,7 +325,7 @@ static void clip_natural_float_from_mono(void *dst, con= st struct st_sample *src, static void clip_natural_float_from_stereo( void *dst, const struct st_sample *src, int samples) { - float *out =3D (float *)dst; + float *out =3D dst; =20 while (samples--) { *out++ =3D CLIP_NATURAL_FLOAT(src->l); --=20 2.49.0