From patchwork Fri Jan 13 14:11:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 641980 Delivered-To: patch@linaro.org Received: by 2002:a17:522:f3c4:b0:4b4:3859:abed with SMTP id in4csp263191pvb; Fri, 13 Jan 2023 07:21:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXtsXpbpC0apbGTc+04xz+rhPWix6AX5oaOXbhQRmG64YUKu/nhybXGKCwgEP3tdMIiuIN3m X-Received: by 2002:a05:6214:2b90:b0:532:2c0e:412a with SMTP id kr16-20020a0562142b9000b005322c0e412amr30733060qvb.52.1673623313417; Fri, 13 Jan 2023 07:21:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673623313; cv=none; d=google.com; s=arc-20160816; b=XTLbmMLyUfQhUHBUNcuEXmPaihYivFvZTcInilU3IKMUmwsc3F220hWFYi/DNAP4zB TQSKavk12mYnyGV0LYc9fj2iuLhUywhplnYmjTm6HxSAp2X26Vo+hO6xW7zR3dXJMzhk mRxSl/Aw8SN9pmIwwDpIjuJQZ7lFQQ/GgFDjZ/LiMXj2ksfl5ruWjxEbrGa2wJV/l0Hw hlXEnXEpK7w9q5LBFohkENcWnsUgDE+pmr+O9eoEfsCxVieXuttoWicy6KtrK9Ukw6X2 VHRSdtbeSu+rWCaGu99pO3deAUgDEQsKgw70n622e6GZib+aPP8Dslcxwr3pQ5pi3s+W 1Prw== 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:to:from :dkim-signature; bh=K7L7nETsVwMFzyPJrLglCmIuDx0/wFyIH1/RuTBWzQ8=; b=rjUcSgWbu6e/8yOCLsVnVp9WErtlvEdxE6k0+a0H1tIHIdtTAW2TxOJ4ynuTCQ5nHZ KypdJVABn04YCM7+XhQOG9ZiN7mmsUB2zYf6CSYWQrhul0BfWfq5bisolZopoTrF3CBj 7zVz7cS7dyb/5W/kNJHch+qfRyZJPzCX17rOddemVfG4PGDvuD0f1k0BSpLpX4Bc77PV u6uorTY6W66dg6RLSJt7jwNvvjvb1N6nnQKnnBWFeRn6EW+6fG5kIIQ79qe0iJQM9Kj9 3mA2YGwP4SmSWDU3aHZfWgHQbhoYNcqbsfVX6At+HL7/2uormkrwRn4q6ixF55HZFqt9 0oag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YLnMVNnj; 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 ESMTP id gc11-20020a056214230b00b004c70a196fefsi12499499qvb.580.2023.01.13.07.21.53 for ; Fri, 13 Jan 2023 07:21:53 -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=YLnMVNnj; 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 1pGKnI-0001VX-IY; Fri, 13 Jan 2023 09:12:32 -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 1pGKml-00012h-7V for qemu-devel@nongnu.org; Fri, 13 Jan 2023 09:11:59 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGKmh-0003pM-96 for qemu-devel@nongnu.org; Fri, 13 Jan 2023 09:11:58 -0500 Received: by mail-wm1-x336.google.com with SMTP id q8so3554826wmo.5 for ; Fri, 13 Jan 2023 06:11:54 -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:to:from:from:to:cc:subject:date:message-id :reply-to; bh=K7L7nETsVwMFzyPJrLglCmIuDx0/wFyIH1/RuTBWzQ8=; b=YLnMVNnjVbSfN+4jlohZ8w9KWK/7rmMGKW/GHBcv2yIrJ2WdQokLH7ptDhsSBPkzDJ dBqCzLwqyfVLLLx2Ncy0V289/fUQn7OlCJFiZ7LZkVRBxm9TB16kaVSLCU7W+OExh4KO qHYNs3a5qv1B+ytNf8BsWYr1wDFjM8DlKYXN7SAZ88mMOtaI/0jGXPAVCPd/oDKkVPcg Qw2pNub+pY5rXLOmVYMHzMuXojd1pPVFF6minEKPyldsswX/bZWZ6Xx1ikiNdNap3vDF 5oOGwsaJGFFE6RHPTUS2j1ccaeiIiUEQQDgw+tELh+kdPbDCFoyBlFZTRKfrlHEy4Mu0 MLcA== 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K7L7nETsVwMFzyPJrLglCmIuDx0/wFyIH1/RuTBWzQ8=; b=wdmgSWasNxfk1ljHXhdzogm7PIjTBVvy8rcN11qsMFNPbDpj8bh0JEwf0XP6Y0peaM fqblHC8kBtxbhL8T7wmhuPftRPbcjixpPG+B22x+FVBUJedxGwIExaOJV03O5pIusrlF 2vvUavvb0KFaEbYBCJbcc1M8LKo5Bhe1Ja6I+FCrKkiMx1sR09onO4nMN2BIN44XEBlO YDTrr3PNBqj6IflG4jdr45PpK6Z3cLmm1Fu0gEV4wMYqyhRLs6YhiAn/iAoYJDWt0oUO soKxIkn3eqn7tzcX4KA55zis/kbBeR7tH8LeSvxcMiFqYO0X2FPsQpqPWulsXDpd3g5M Vjeg== X-Gm-Message-State: AFqh2kqZnbQmf289vdS9lDthoMR1q/9VzhjL5CiPSIdphm42gFaZCLRF DNGZSbgMeYuPlqTe9krCl20+Ulvkbwf1+zju X-Received: by 2002:a05:600c:358f:b0:3d1:cdf7:debf with SMTP id p15-20020a05600c358f00b003d1cdf7debfmr60018610wmq.26.1673619113662; Fri, 13 Jan 2023 06:11:53 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id n36-20020a05600c502400b003da0b75de94sm5334464wmr.8.2023.01.13.06.11.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 06:11:53 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 30/38] hw/arm/stellaris: Drop useless casts from void * to pointer Date: Fri, 13 Jan 2023 14:11:18 +0000 Message-Id: <20230113141126.535646-31-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230113141126.535646-1-peter.maydell@linaro.org> References: <20230113141126.535646-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x336.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=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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-id: 20230109140306.23161-8-philmd@linaro.org Signed-off-by: Peter Maydell --- hw/arm/stellaris.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index a9e96c37f89..051c242e9d6 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -749,7 +749,7 @@ static void stellaris_adc_update(stellaris_adc_state *s) static void stellaris_adc_trigger(void *opaque, int irq, int level) { - stellaris_adc_state *s = (stellaris_adc_state *)opaque; + stellaris_adc_state *s = opaque; int n; for (n = 0; n < 4; n++) { @@ -785,7 +785,7 @@ static void stellaris_adc_reset(stellaris_adc_state *s) static uint64_t stellaris_adc_read(void *opaque, hwaddr offset, unsigned size) { - stellaris_adc_state *s = (stellaris_adc_state *)opaque; + stellaris_adc_state *s = opaque; /* TODO: Implement this. */ if (offset >= 0x40 && offset < 0xc0) { @@ -833,7 +833,7 @@ static uint64_t stellaris_adc_read(void *opaque, hwaddr offset, static void stellaris_adc_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { - stellaris_adc_state *s = (stellaris_adc_state *)opaque; + stellaris_adc_state *s = opaque; /* TODO: Implement this. */ if (offset >= 0x40 && offset < 0xc0) {