From patchwork Sat Jul 5 13:09:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4488381 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 A6D7BBEEAA for ; Sat, 5 Jul 2014 13:08:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58953202BE for ; Sat, 5 Jul 2014 13:08:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 869E72026C for ; Sat, 5 Jul 2014 13:08:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752961AbaGENIQ (ORCPT ); Sat, 5 Jul 2014 09:08:16 -0400 Received: from mail-we0-f182.google.com ([74.125.82.182]:53148 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752126AbaGENIP (ORCPT ); Sat, 5 Jul 2014 09:08:15 -0400 Received: by mail-we0-f182.google.com with SMTP id q59so2522222wes.41 for ; Sat, 05 Jul 2014 06:08:14 -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=JE1wXx8pRonagAUzV87ySHrupUYyPGHOKQrhiGRPfjM=; b=RUOfGchMTt1sE7WGKvTlVHYRRX7AkdRDQsse6sft24q7m0wm1/HRSI5KE/wwnmqOTR vQUoLUlydMxlZZG1/9A9pDsbiMGHiECNVBzH1CCwCzysmpuWwQrdClmZ55v3IJ9fKVR7 BYc5iYdeZSGJ0oavnN/ZMlesOVmO5ulvzpyr5hPm5Iu5jK1n3QlZfef1GDcesitPzS8P /6QUy7wo5W827AOVt2hiu58cm4xUIDXI7zIo/dfeRwJLw8KH7YlSHGdQPdqzvBn7VHHP 1kLWhik8i45UgH64rhFsDBNM+V7UUv3Gctsvf08tDgPia5sxvh64DMYtjLLLjmZprQLk BeGg== X-Gm-Message-State: ALoCoQkSFseNfl5n0JyrqvVpTKFP/83JjFn78ENG3b05qf8TKfWp8C+J2XTsc4Bzg17nwQsK1aQJ X-Received: by 10.180.211.71 with SMTP id na7mr18071182wic.55.1404565694287; Sat, 05 Jul 2014 06:08:14 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id pq9sm75663377wjc.35.2014.07.05.06.08.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 06:08:13 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Rickard Strandqvist , Jingoo Han , Daniel Vetter , Joe Perches , Laurent Pinchart , Luis Henriques , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: vga16fb.c: Cleaning up useless assignment of function parameter Date: Sat, 5 Jul 2014 15:09:31 +0200 Message-Id: <1404565771-22515-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 Removal of assignment of function parameter, that has no effect outside the function This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/video/fbdev/vga16fb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/vga16fb.c b/drivers/video/fbdev/vga16fb.c index 283d335..d92e4fd 100644 --- a/drivers/video/fbdev/vga16fb.c +++ b/drivers/video/fbdev/vga16fb.c @@ -275,7 +275,6 @@ static void vga16fb_clock_chip(struct vga16fb_par *par, } par->misc |= best->misc; par->clkdiv = best->seq_clock_mode; - pixclock = (best->pixclock * div) / mul; } #define FAIL(X) return -EINVAL