From patchwork Sat Jul 5 12:51:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4488281 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 7729EBEEAA for ; Sat, 5 Jul 2014 12:50:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AAA13202BE for ; Sat, 5 Jul 2014 12:50:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AF6FB20265 for ; Sat, 5 Jul 2014 12:50:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755446AbaGEMuH (ORCPT ); Sat, 5 Jul 2014 08:50:07 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:61971 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752901AbaGEMuG (ORCPT ); Sat, 5 Jul 2014 08:50:06 -0400 Received: by mail-wi0-f173.google.com with SMTP id cc10so13882884wib.12 for ; Sat, 05 Jul 2014 05:50:05 -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=2fCUZ6vNnHZsnlT0oNVwBQDrZ0PvmC/UPD0AUAKJhIQ=; b=ajGcNJG0JvZ7kvm1/kUSQJ95H5P+jiUAZmX2AbDlRjppUDvibbwwYDBwNwrkQek3hw JA4OYYTI2SHundI8PDVNIOcHbrkPDvKzxdi77y60tiCFTEHqgyukLzSYKE647l63Xp60 jSMIUhFQmgUZdskN7Dbks/DzsIJSAt3HJXw8yCABxOBVrFWCAXju9lFKS74xkzu+ljwt xWWLXZ64b5JnY+9L2kAwuox66TlHdV6nMihr4VLvKj/eIsPTCxkvYlCgYRpMIUes8qwt EaE2zehd6u1fBh2RKukgaJqzO9pTHYACOT+GW04qFRfVqmbCb7Uup1XlYG4AOENpKZGZ A5rQ== X-Gm-Message-State: ALoCoQl2q5tsm3kaJZKYZR5z/dMhiYo9MWqPdYbIG6drGdxChF7WHTL3MyDyNiBFrgSVjD4fv2mc X-Received: by 10.181.13.137 with SMTP id ey9mr47222648wid.57.1404564605628; Sat, 05 Jul 2014 05:50:05 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id ja9sm90818560wic.8.2014.07.05.05.50.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 05:50:04 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Wang YanQing , Jingoo Han , Evgeniy Polyakov , Joe Perches , Sachin Kamat , David Fries , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: uvesafb.c: Cleaning up variable that is never used Date: Sat, 5 Jul 2014 14:51:22 +0200 Message-Id: <1404564682-21983-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=-6.9 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 From: Rickard Strandqvist 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;