From patchwork Sun Jul 6 17:26:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4490101 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 6F847BEEAA for ; Sun, 6 Jul 2014 17:25:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B273520265 for ; Sun, 6 Jul 2014 17:25:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E712F2024D for ; Sun, 6 Jul 2014 17:25:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbaGFRZX (ORCPT ); Sun, 6 Jul 2014 13:25:23 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:45293 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbaGFRZW (ORCPT ); Sun, 6 Jul 2014 13:25:22 -0400 Received: by mail-wi0-f174.google.com with SMTP id bs8so14891420wib.13 for ; Sun, 06 Jul 2014 10:25:21 -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=v/FnbyW6/CbE7Bk1FPjP1XJpp0D61lgcDZj4RxE+XbQ=; b=Qfc38DuJ1vNa0nZUJ1sQQ/bwo4HovVYBDnqxn/qwncifTXIoiSXiU7BA3TrMp4+90K 8E6MR0K732fSB6DYhWi4IyG+ht2PJdmg0MUejNpqxnl2mQzJDfZq6wtsC1xvjE2FTky7 j/+RfQGmb5uvJjazEQjHJk/pQmN97/yr8iJbP8/4lbUaQntD6+kHWRW50D5fG8cWB9yx r1F1nmx/K9O2e+X8oId0BQFzRGaZ1k+jJUWCIoqOw+BVZ4ZveI0aViuhsUrKFk3qa0Yg mF6sC7rgqgSbaMk5p1R0Asf0adHa0zOo/iOTa1LSKFlZmGC8omCrPRfu/wmzI33K9SOx sKYg== X-Gm-Message-State: ALoCoQnHWzu2GFUPdUQpz5NYesUtwUZWSsXaLioIOF9Uin6NskWtvX7zu/WP6i9pzdrAmKTWBSAS X-Received: by 10.180.86.7 with SMTP id l7mr17818683wiz.55.1404667521696; Sun, 06 Jul 2014 10:25:21 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id by3sm64438841wjc.10.2014.07.06.10.25.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 10:25:21 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Daniel Vetter , Joe Perches , 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: Sun, 6 Jul 2014 19:26:38 +0200 Message-Id: <1404667598-14772-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 Remove 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