From patchwork Mon Feb 27 14:01:49 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: 657020 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2373067wrb; Mon, 27 Feb 2023 06:13:00 -0800 (PST) X-Google-Smtp-Source: AK7set8V4jMz4xAZgjDMVsWMqtmtVNNffGMw5ubyhf7MUjDcRf+8CLvCisisk3t66wgpALVpY2B5 X-Received: by 2002:a05:6214:400a:b0:56e:ab31:199d with SMTP id kd10-20020a056214400a00b0056eab31199dmr40675875qvb.40.1677507179995; Mon, 27 Feb 2023 06:12:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677507179; cv=none; d=google.com; s=arc-20160816; b=SqlyQwRnmeKOojvZfHLSDa3rTkqn4uP9p4I0yzTpajYzLn1MIK5p7yEGGQ8uyhKQ+q 7CIO3AOnZD2MgTIr+Z5y1/D54VUgGmRYneELdkHrbAGZLCGwIU1hPi5aLHh/t1+UBgOM 9HCHMqiXYJA5+pjfED5DiG89457y3Nyie96P9TPi5kAjgFmblrlFr5Y/qT1y5tGQKq0l Ph6K43Ls2keUZG1YDv6qd13pwbazzbcZhHUA5x+RZ82K1QqZwSossug1v94WTOc65EX3 Wajl8P4UeA/hjMAkI01i36zJ4D1KQ3OYMixbFI1jKFbnhT80mqzFfR7MQpORUg8DHZoK 3Rlg== 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=Ep/ieGMZNayE9X06ftc5taHWHa+LemsYZU+KXdgMGEE=; b=UbpNaZCpl7j3SOOLyV6gx5XWVgx3QYgNni6sak9yfJlTctWmHfXnQpxbZiQvhtS4Yo fYwcqQf8W1lKdcojuPjuDdP+eK5q9H7jf+4PR6HSEgQqEM5KvQa8Xq80gRFt7zvOigGJ ag2Tdo23oVx7laFtNxEPfMrnZxzXC5sUtaeZ60Q2o1tylM2tu1cn+sEe/uOVyfnstSiI g4aOZzwg5bcMdC7Pael/5jxrM96uoVwaq/o1Mj82+1JWwPmpMAUnR6sKBKrbaA1tgU6a gKOU3SmSx8P7VtHib+etLX0PTOtV8NKA3W2kOPfDbWJjFlQaiVKhl2l1lmO04QNc/LqI clww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ih+a+h8f; 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 f22-20020a05620a409600b0073ba8c7df2fsi6485937qko.319.2023.02.27.06.12.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:12:59 -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=Ih+a+h8f; 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 1pWeF1-0000WG-OF; Mon, 27 Feb 2023 09:12:35 -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 1pWeDC-0007HG-MZ for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:10:47 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWeDB-000109-25 for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:10:42 -0500 Received: by mail-wr1-x430.google.com with SMTP id bv17so6373855wrb.5 for ; Mon, 27 Feb 2023 06:10:40 -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=Ep/ieGMZNayE9X06ftc5taHWHa+LemsYZU+KXdgMGEE=; b=Ih+a+h8fLWTAN6IN4/2iwsseG5+VzD6WON0t7YEExdFgR+2/4VRfmJr2nGtWb3zOQd CgFlwis06U5KyATf/notj7jeGftnoF/+nW02d/w2WxANXRIjAe8RjgfTvkQsTzfWDqka O6h+a8cYT7ze0IaVoa+n2h2FzwSihxuwjkM1RBL4evVUvw/uY5MzczwVZC8EqbqM4laC xt5lXvYud5LYPfwFjTyZwviBghvQ5oHFH+zLhzhL3dW/9GOPb7IZR5RRra+98epI2Pj3 pq+7tAfJ9d5M4ZXOzb/kT47SuIHCz+AO5sHHtnPH+cELWowkqqIU2buiUX3A8K9pPP7X 3rNw== 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=Ep/ieGMZNayE9X06ftc5taHWHa+LemsYZU+KXdgMGEE=; b=KQ9MAyz/vjNg+ueYmtg7f1XP0KmR8IUOFqtRm9Y+K/tRqgGD7f394xMZUC0xvYI26K RLQsvv/hGrsL24BqAcah61Acq31J+9mYXV7ftOVpBwS+nH3PEpni9HU1lNxGqDpKHQQM iuq+Q9alsSIQI9P4e2TngnA9sPayLiZGS1J5lUvzEAQFD3W2VbMN5xITrq+Lt7f9a3Pm Zm78XBAPPpDTMCwj7j8i78Cwdn/er+dQ7Fvocxrxaoq0aWyWx4mRax/ufUHZbnZOdGve 0SEutJ2n8XL0yyDPMIiChVn5stP2lXSVdg9ldWaPV522cwHBiGmO6xuglzwEbuYRuMlY Fupg== X-Gm-Message-State: AO0yUKV6J7+E+5CL/abmFlnkNqlWpYjpE7C3HAhQMvW5St0ov0mA1C3G Ieeh41XWrdPiCkFjK0tdk4Imh5DB1btdpokJ X-Received: by 2002:a5d:570e:0:b0:2bf:d940:29b6 with SMTP id a14-20020a5d570e000000b002bfd94029b6mr21816092wrv.54.1677507039186; Mon, 27 Feb 2023 06:10:39 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id a1-20020a05600c224100b003e118684d56sm13065046wmm.45.2023.02.27.06.10.38 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:10:38 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 102/126] hw/ide/isa: Remove intermediate ISAIDEState::irq variable Date: Mon, 27 Feb 2023 15:01:49 +0100 Message-Id: <20230227140213.35084-93-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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 The intermediate ISAIDEState::irq variable just add noise, remove it. Message-Id: <20230215112712.23110-6-philmd@linaro.org> Reviewed-by: Bernhard Beschow Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé --- hw/ide/isa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 5c3e83a0fc..ad47e0899e 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -45,7 +45,6 @@ struct ISAIDEState { uint32_t iobase; uint32_t iobase2; uint32_t irqnum; - qemu_irq irq; }; static void isa_ide_reset(DeviceState *d) @@ -73,8 +72,7 @@ static void isa_ide_realizefn(DeviceState *dev, Error **errp) ide_bus_init(&s->bus, sizeof(s->bus), dev, 0, 2); ide_init_ioport(&s->bus, isadev, s->iobase, s->iobase2); - s->irq = isa_get_irq(isadev, s->irqnum); - ide_init2(&s->bus, s->irq); + ide_init2(&s->bus, isa_get_irq(isadev, s->irqnum)); vmstate_register(VMSTATE_IF(dev), 0, &vmstate_ide_isa, s); ide_register_restart_cb(&s->bus); }