From patchwork Sun Jul 6 19:01:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4491531 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 12847BEEAA for ; Sun, 6 Jul 2014 19:00:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 52AB22024C for ; Sun, 6 Jul 2014 19:00:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 757DF202E6 for ; Sun, 6 Jul 2014 19:00:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752214AbaGFTAG (ORCPT ); Sun, 6 Jul 2014 15:00:06 -0400 Received: from mail-we0-f172.google.com ([74.125.82.172]:48495 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751996AbaGFTAF (ORCPT ); Sun, 6 Jul 2014 15:00:05 -0400 Received: by mail-we0-f172.google.com with SMTP id u57so3471525wes.17 for ; Sun, 06 Jul 2014 12:00:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SEPinEamYPvJ8HT76HndhL4+smwhmDf/yF4fcJsfmdg=; b=KVNKCH5F2uVTFe40bi4ZlE9CRg3jjnA4bAvI06zedoznlD4i90j5KnXe9BPTu7VI5e phHPs+BD1R+ZcNPGMHR86kTptjZ2qNL8R55RRmX6hDihY+n15cTu3hXW9rCqq053nDEq MBZPUE+N0X5CkSdWfSFxOboBUrurxzQGmSFwYa8UudrkC0nnfQ/3kMiXvrbHEM+cOA5c 70o6S3gR9cf0KgFZfM1r5lEMS6uCutZ6VkKmkR0KRG1E1OiUlyyCCjsmRQjM5RNSf5WJ cJm9TVpBm2Zzk1Pl6YHsB8FyqF4qEOlc80Rvc8tBlk3XyK9LraEaTkhflaQx3jFzwSiR 7XFQ== X-Gm-Message-State: ALoCoQmNTeFBnrCyO8YZLm0Uv1M+aO2m7gnmO/mvZwFFdfu7L6iPq5gPQ9v/Ssb6jEZB5MWknITL X-Received: by 10.194.60.110 with SMTP id g14mr4276751wjr.101.1404673204135; Sun, 06 Jul 2014 12:00:04 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id ec8sm87055721wic.10.2014.07.06.12.00.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 12:00:03 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Wang YanQing , Jingoo Han , Evgeniy Polyakov , Joe Perches , Sachin Kamat , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: uvesafb.c: Cleaning up variable that is never used Date: Sun, 6 Jul 2014 21:01:20 +0200 Message-Id: <1404673280-20585-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- 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 509d452..50086b9 100644 --- a/drivers/video/fbdev/uvesafb.c +++ b/drivers/video/fbdev/uvesafb.c @@ -555,12 +555,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;