From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B440C64E7B for ; Sat, 28 Nov 2020 22:42:48 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4086B20771 for ; Sat, 28 Nov 2020 22:42:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kbvH5lO6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4086B20771 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BD1B66ED0F; Sat, 28 Nov 2020 22:42:41 +0000 (UTC) Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by gabe.freedesktop.org (Postfix) with ESMTPS id 085036ECF9 for ; Sat, 28 Nov 2020 22:42:11 +0000 (UTC) Received: by mail-lf1-x144.google.com with SMTP id l11so12775676lfg.0 for ; Sat, 28 Nov 2020 14:42:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CjZfskooFlaX/DGp4t6swfhL0OZzCmQsrAHog/enb2E=; b=kbvH5lO6M/0b24ppZEXXjkELi137m8NHaDUi5sHcw9rgj9eEAMN+y8qSrVKSah43ZB kNzlmzEdaaOYOIiqJKn1QuTx4HECFGiNG5kIYtZVLjmzMMCYE8XksdHL9QrRejfF2L4k tc+pZ7F6yRNKZTfx/4k0M/8aHNQca6Le//TxOPNQg21tKPG0fpjao+tSkG0zUUx4C/p4 Do2QuSanQTDFC5byyaFn272MmfSydSeWIcEeX7J1u6P/GHak3TWpJ9leOcXx3/rkepbU 0rENcy6xxB0X63NjVUvqHntifA7cH13M+jadh0Cqw6o1lQjgi4jhld/Dj9XzIOnlgCBa Rg6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=CjZfskooFlaX/DGp4t6swfhL0OZzCmQsrAHog/enb2E=; b=gQ94WkUUphV7JL4+2aL3ItNw97XLyAAXwTA5myOD1A2KIb/Isvj1fftDtbJDQ/rROk ecoCirUmyrV4F3IykG/7M03eby0+lzWTycoE6L+SM4meKs6FMpnwAISNShZ53VfN3zBo 1QxlWm3LXvC0P04RlaVPwQ3ubO+flxoLBIgGt9B/6BU3QfeyNmUiL2nZ0HvYF2e3Kzl8 NSjncFJkpLydNr9BVrxjKmgsovhAEBanNNir4DcbuNJwyYH/g8MaLU0t2030usyRg/rX MQl7O1gcELui0wa6TWQEGaN3+VLi6SMe8WXD2VSDk25ilOZYRmBhV62I0ZqgYpnZ0ck4 uF+A== X-Gm-Message-State: AOAM530h+qIJTDUvetho2dAFA7VYBv/YLgCmYFDf0Sk6LQQxya3GI05A BOFrRagTYOP2ScGwiG4XFdU= X-Google-Smtp-Source: ABdhPJw+VsDQ4zX/JWQzp6JQylXffQeZeYKR1WVyqNC7V1IDBPsnpo4ION23xSBTKahJANEMfTaLxA== X-Received: by 2002:a05:6512:5d7:: with SMTP id o23mr6317203lfo.272.1606603329464; Sat, 28 Nov 2020 14:42:09 -0800 (PST) Received: from saturn.localdomain ([2a00:fd00:8060:1c00:a4c7:9ff9:a160:aad0]) by smtp.gmail.com with ESMTPSA id w21sm1236857lff.280.2020.11.28.14.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2020 14:42:08 -0800 (PST) From: Sam Ravnborg To: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Lee Jones Subject: [PATCH v2 25/28] video: fbdev: uvesafb: Fix set but not used warning Date: Sat, 28 Nov 2020 23:41:11 +0100 Message-Id: <20201128224114.1033617-26-sam@ravnborg.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201128224114.1033617-1-sam@ravnborg.org> References: <20201128224114.1033617-1-sam@ravnborg.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vaibhav Gupta , Tetsuo Handa , Michal Januszewski , Laurent Pinchart , Jiri Slaby , Arnd Bergmann , Florian Tobias Schandinat , Evgeny Novikov , Sam Ravnborg , Saeed Mirzamohammadi , Daniel Vetter , Thomas Winischhofer , Thomas Zimemrmann , Bartlomiej Zolnierkiewicz , Jani Nikula , Aditya Pakki , Xiaofei Tan , Nathan Chancellor , Alex Dewar , Jason Yan , Greg Kroah-Hartman , Qilong Zhang , Randy Dunlap , Gustavo Silva , Peter Rosin , George Kennedy , Kristoffer Ericson , Alexander Klimov , Jingoo Han , Joe Perches , Peilin Ye , Mike Rapoport Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fix W=1 warning by deleting unused local variable. v2: - Updated subject (Lee) Signed-off-by: Sam Ravnborg Cc: Michal Januszewski Cc: linux-fbdev@vger.kernel.org Cc: Lee Jones --- drivers/video/fbdev/uvesafb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/uvesafb.c b/drivers/video/fbdev/uvesafb.c index def14ac0ebe1..8ee0fc9c63cf 100644 --- a/drivers/video/fbdev/uvesafb.c +++ b/drivers/video/fbdev/uvesafb.c @@ -554,12 +554,12 @@ static int uvesafb_vbe_getmodes(struct uvesafb_ktask *task, static int uvesafb_vbe_getpmi(struct uvesafb_ktask *task, struct uvesafb_par *par) { - int i, err; + int i; uvesafb_reset(task); task->t.regs.eax = 0x4f0a; task->t.regs.ebx = 0x0; - err = uvesafb_exec(task); + uvesafb_exec(task); if ((task->t.regs.eax & 0xffff) != 0x4f || task->t.regs.es < 0xc000) { par->pmi_setpal = par->ypan = 0; -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel