From patchwork Fri Mar 5 17:14:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 393567 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp651407jai; Fri, 5 Mar 2021 10:13:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnkDCwRo6Eh/bmfNU3xCRgjDfhztqbPEb62V+Lxytacm8Z42iBkKt90Kd+0/T4rCkNmKRG X-Received: by 2002:a02:ce8d:: with SMTP id y13mr11081792jaq.29.1614968001301; Fri, 05 Mar 2021 10:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614968001; cv=none; d=google.com; s=arc-20160816; b=ORUG8rVbxmvHYCQ76Gevuxq1jYrRKQnObckSCD5T/G53lV0scwqlhtUCz5ZMJ6RCkm vziG6ysFdk/aqo/DqxTym28ltnnVYZIvSvWEC2KFjIneetMY/6erXRAnAigAut9rUkLn Rm1Hnx53UZqzrlaDpQFHzPjhhEiCIv5BX+nqVFOVPWpAHGElPU2fx6iuJ/ZBeai4UAVM iJ9FU/xxhiCK/TBAMaeu+zK0PrrTGSx9ULEb3CvPeCcR3DJSHQPRN1OAoCpzjAxI6vmU i4wEgI92zTI49f1vRQW4cE5pJ+ipgN+chNb2rRvY2NqbNObyrXoOIFDuhsZPPuyBjE09 T6CA== 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=2b6FsaIecUp7nn2WzqIajLloJVXEMYAzJTZLvvG7dSo=; b=WZzcDoYGk3U9TjmZDkS+jbjYfy9bY/5iMwJeAX4KQBCMbVdF0IN5z32gFRTipaHNy4 0qAK764T2V+D75xxPDdEXpocykwL3XmzuWiC5KdGmX0ozBChCAWTmiadyl2lW3boGzkr SBjUA1M4q7WM1QdZVwKjIJvYAEG1T0DMe6qZjWawGZOz65EWUV8QfrSJJTd2y9oexT+y 9ByeIjEa98l+C3m2Od57Ihu7dMR8gIUUV/12C1ZSVwwwLocPNeEGYI4+CKm5DiQ1VdT7 n5wuaApbyRwsyWujhehhW2wtDpW2GvGHqyW+8Rr37zj8Ck6sRjsj5PIXAciSVNvPT/KL GBGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IXVE+Mga; 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 i1si3034860ilq.28.2021.03.05.10.13.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Mar 2021 10:13:21 -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=IXVE+Mga; 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]:40026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIEwy-0004JV-FL for patch@linaro.org; Fri, 05 Mar 2021 13:13:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIE3Q-00070U-Hi for qemu-devel@nongnu.org; Fri, 05 Mar 2021 12:15:56 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:53418) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIE3A-0007bE-05 for qemu-devel@nongnu.org; Fri, 05 Mar 2021 12:15:56 -0500 Received: by mail-wm1-x335.google.com with SMTP id e23so2101509wmh.3 for ; Fri, 05 Mar 2021 09:15:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=2b6FsaIecUp7nn2WzqIajLloJVXEMYAzJTZLvvG7dSo=; b=IXVE+MgalQIgEyW5JQjoyGvT3KndB7KCnTd5JBvrnl631BrZqYj2c2cKuh5XGNoJLx 5ZtQYVhYRs7jVHNd83jir7ebU8gqg2XEYPpS/4l1cQFD25rE/lq4CENQuu6mgDAALq1r TdfyCAYlfi0KlKPLpBSZuq2biw3Dtm2OukTHb4ZTczNQg+MyiHoXUkY0668aZrCfjvLk kwSLC/VwXGqKfGRjPvWxrQKHTRVmvUH5slfmmHc8L6VEulwVVSf1tQzDOVm3ksCsbYd4 KyKAtJdFhRGLuEty+s38zdeunbvapTICssSkarw+ctvS3Tco09BRvU0KPnH2U3AiLgSa Jt9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2b6FsaIecUp7nn2WzqIajLloJVXEMYAzJTZLvvG7dSo=; b=lCcq2T2qsJ8+Ivd+CNQ2dmC54U/PYNDdKJyWe4mkbvgd50dWaNMmETVN5oPM92jVxU We4ilZdw9jZiulHbbYui2yUhUDomodPhCuw+3ErlIZU/xf8DvTQPUTLFapmd1cmgXsnL 0h9YHHAFz9p8IUlNvyqm2+avr0caNomaoDcjiBiCYiietyqFO/vGFfdP1gzLNjF/NNEz 6yTQD3OFCUu0h7K1Pu9UiQo+eqMUScz4XWJ9m0sC4KhWY9ZtQGMwuoWob1sMgFdneooa 1X9aWH+yu8fK2h/23GmBEQz6hGMQwMhWgm3YenOMVEvtBKLLiJvlFioqBl8Sr87mNFBs BFVA== X-Gm-Message-State: AOAM532nvMjRknV3wWe4VKVgRiEEPZAWcmG14b3kJhToz6HGpa6tr5MY JTRYLgUhFChkW8BBs/Tu5qL7tILaB5CZhw== X-Received: by 2002:a05:600c:4f0b:: with SMTP id l11mr9879536wmq.102.1614964534621; Fri, 05 Mar 2021 09:15:34 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id m132sm5942357wmf.45.2021.03.05.09.15.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 09:15:34 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 24/49] hw/display/omap_lcdc: Delete unnecessary macro Date: Fri, 5 Mar 2021 17:14:50 +0000 Message-Id: <20210305171515.1038-25-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210305171515.1038-1-peter.maydell@linaro.org> References: <20210305171515.1038-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x335.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.23 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" The macro draw_line_func is used only once; just expand it. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-id: 20210215103215.4944-10-peter.maydell@linaro.org --- hw/display/omap_lcdc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.20.1 diff --git a/hw/display/omap_lcdc.c b/hw/display/omap_lcdc.c index 2db04fad2fc..0ba42ef637c 100644 --- a/hw/display/omap_lcdc.c +++ b/hw/display/omap_lcdc.c @@ -70,8 +70,6 @@ static void omap_lcd_interrupts(struct omap_lcd_panel_s *s) qemu_irq_lower(s->irq); } -#define draw_line_func drawfn - /* * 2-bit colour */ @@ -202,7 +200,7 @@ static void omap_update_display(void *opaque) { struct omap_lcd_panel_s *omap_lcd = (struct omap_lcd_panel_s *) opaque; DisplaySurface *surface; - draw_line_func draw_line; + drawfn draw_line; int size, height, first, last; int width, linesize, step, bpp, frame_offset; hwaddr frame_base;