From patchwork Tue Jan 10 08:25:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 640833 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp2591287pvb; Tue, 10 Jan 2023 01:11:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXubPsNzUYxJelcyIKdWZJOC3fWrVc23zLnHPJ2vevR8M15BRtG4qgaYY+SKGTM3Nef2d8kL X-Received: by 2002:a05:622a:a0b:b0:3a6:a7f6:701d with SMTP id bv11-20020a05622a0a0b00b003a6a7f6701dmr108499517qtb.36.1673341893915; Tue, 10 Jan 2023 01:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673341893; cv=none; d=google.com; s=arc-20160816; b=VBmrjM51KMOdV59IeAGtYmxlhVpCXR8Fe4Bd5relRfpQMw97tXwV9K+qZMKppuWoyR y3cBasbs4osbulfwmtCaMYP+vOjCnAv3i91m++Yp3Hjur2uyrd/Pl2XfKnBxO3bg0vKB UaJQ18rLjYoT7DOksDIzGSrsnogoVzy5DAo6plsDsBxUzhkGN94YMsV9AE4iUQ1cYeUb Ls8Z5WGxX9htxAWuxoBChRAJ9OaMKjX98lh9UdR/WXYdx0uPaFGhWwXlArrN9huijPmY AFAJu32PdI+OP+W23MzPqcGVFj90lf7BoYOQffIbycrk0RVtVB6cvhkhsYGpz1/xgY3C 07xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oMTwqkBab9qLw7qsOi2RxqfZ6soVzk4ZQTHI3CEHkGc=; b=SXm6+EdNLDHC5vfkT48JyP6PIQhbHN2dLebzW6cZVJ9vHl8kEUnfxW84miJsVwaSMw eCABH/prAsAGRzOEaL/TZOZopsh65q7GEnyRcGGChh52ip0gPGT96d6VtjkMm876OzbZ XPstb21XqV+GDjCRZXZFkQhGl+7rBI2Z2+f20f5eJ/tBiYKTHBod7nYo4bvX9Ycb++LC dW2aboTP5fRj5U4PXZo0chXs88SrYOudgpCq4wDaFjBhN6+8zb/mTOHNQKPzQXKSn7tG bNJgJEOzDDAmUM87C7aNY8lfbMIsc1XMBvcetqclIAjrBfHicgLKAvm5IBDHugXeto+Q +nQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u3xuOp6W; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p20-20020ac87414000000b003a4ea208149si5986871qtq.252.2023.01.10.01.11.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jan 2023 01:11:33 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=u3xuOp6W; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pF9wf-0005WC-9B; Tue, 10 Jan 2023 03:25:21 -0500 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 1pF9wc-0005VU-UX for qemu-devel@nongnu.org; Tue, 10 Jan 2023 03:25:18 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pF9wb-0004Tp-1k for qemu-devel@nongnu.org; Tue, 10 Jan 2023 03:25:18 -0500 Received: by mail-wr1-x433.google.com with SMTP id bn26so10906852wrb.0 for ; Tue, 10 Jan 2023 00:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oMTwqkBab9qLw7qsOi2RxqfZ6soVzk4ZQTHI3CEHkGc=; b=u3xuOp6W/3B1hAw29XFkYE8PIuOpvIPawpBszSXwSG6oz9rNLXTCtoz02q6xeWyzPf 4N7EE6Myw2BbFRf1gUp3pJvv7m3/PCVTku0b38dEE67xcCDCA6sGQIWt49ZyY862ipV2 yLvFkRxvGtBUBmBNHunDTm5jZRpM2qnJ9FPeKjKY8eL+MqFnCet1EjUN1XhKAX8cOcLQ QVHSjOJT5mc4X8DrTXOJE+io5Ni42j192E8COzwd9uhvK8ORTUWAFGE5Vp9xKioCtgrR CB+csQBC7tLSkI0OkN6DEHj8O8J9iEBNNZ9LE5Og31lWLpa27/bnVjDXEX6yKq3f2a3F F6gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oMTwqkBab9qLw7qsOi2RxqfZ6soVzk4ZQTHI3CEHkGc=; b=wEMl1blMNVKUecqWQ4HwOzbtAVe7B72hzbicIk7Jz02x2mClfuCTeeU4IpForh/82J 1bDmyBcmrrVfso0Ek/gX5n8SCPVQwiTLSCwqljDFu7AuyA/Ln0NCca15SKDADRUKaf1S eCICx+j5fEkaNrFtm5QYSRz67stKGqgdDjWwIMaGwQwF94DlouvV2THvUDnG7C5C0ZlI zcBFNsE34q1Rfwu6gAnZDM2nMqZs6AjJ/93NsQsBO4Iur7TqmQhKm4KcCImQEGzCLLcK 4qQXAZu+y67Nox6Q2ISoLORcfcmzhQaGZGrV95AhOX1uw0qOjENN+GQi0nslpFdPA9FW AXdg== X-Gm-Message-State: AFqh2koKqI37trdvwyFdQdwTsML/SslZq6Iok3BnoYKpSvR4DHInGHte oowJ6axDlqfh7JqsYqlRHyMga1v7c5cU0J34 X-Received: by 2002:a5d:6e83:0:b0:2b3:e803:a041 with SMTP id k3-20020a5d6e83000000b002b3e803a041mr11914969wrz.44.1673339114950; Tue, 10 Jan 2023 00:25:14 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id w6-20020adfd4c6000000b0027cb20605e3sm10392844wrk.105.2023.01.10.00.25.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 10 Jan 2023 00:25:14 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PATCH v2 1/5] hw/i2c/versatile_i2c: Drop useless casts from void * to pointer Date: Tue, 10 Jan 2023 09:25:04 +0100 Message-Id: <20230110082508.24038-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230110082508.24038-1-philmd@linaro.org> References: <20230110082508.24038-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=philmd@linaro.org; helo=mail-wr1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i2c/versatile_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i2c/versatile_i2c.c b/hw/i2c/versatile_i2c.c index 3a04ba3969..52a650f45e 100644 --- a/hw/i2c/versatile_i2c.c +++ b/hw/i2c/versatile_i2c.c @@ -45,7 +45,7 @@ REG32(CONTROL_CLR, 4) static uint64_t versatile_i2c_read(void *opaque, hwaddr offset, unsigned size) { - VersatileI2CState *s = (VersatileI2CState *)opaque; + VersatileI2CState *s = opaque; switch (offset) { case A_CONTROL_SET: @@ -60,7 +60,7 @@ static uint64_t versatile_i2c_read(void *opaque, hwaddr offset, static void versatile_i2c_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - VersatileI2CState *s = (VersatileI2CState *)opaque; + VersatileI2CState *s = opaque; switch (offset) { case A_CONTROL_SET: