From patchwork Sun Jul 6 17:27: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: 4490121 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1F4739F26C for ; Sun, 6 Jul 2014 17:26:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59D2B20265 for ; Sun, 6 Jul 2014 17:26:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 704572024D for ; Sun, 6 Jul 2014 17:26:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751987AbaGFR0G (ORCPT ); Sun, 6 Jul 2014 13:26:06 -0400 Received: from mail-we0-f175.google.com ([74.125.82.175]:43931 "EHLO mail-we0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751983AbaGFR0F (ORCPT ); Sun, 6 Jul 2014 13:26:05 -0400 Received: by mail-we0-f175.google.com with SMTP id k48so3378496wev.20 for ; Sun, 06 Jul 2014 10:26: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=X84vv6CfmZaLFZ/clIxzpYPQzWLZYcwLrtzvK/nZR9I=; b=kq2ZPc52xGh516PlSJx6C9ItCy2YVlkkWxtXzsD27KCv1OcD8YGziAzoWsVkPUwqQU RYcQiaMHYcRVvyDGgzhn72p2BY0uBIR9n4AwWA3O3K2aWFbYXbk8aCD+uRk4QObGLlID 3SnFH+Nk3x8xP8/hvoOQMsvCclGpgKIlyS1Dy6nWQ1DVd2n65LThjZNdCPQSeOVAYVxe CFg1bXTm4TAzap6F5txS4h/PRFXOHpsPAjwrlTTRVam9FLOfXiEc8VrjAe5WUUiGysta vJ1dHYngID3c8HFDtxkFaSkRmbDugkyoM0AgePRNu7Qug/V9+XtBpgz3ft4bF3ty9EuF b9TQ== X-Gm-Message-State: ALoCoQm/YEjKLjdMkRYG1JRe3DrRyW8ZEhLonljBAfgNG4wzg7hTxcwyFA91W0+yzlbI5SNF2/Ix X-Received: by 10.180.75.75 with SMTP id a11mr69298425wiw.3.1404667564006; Sun, 06 Jul 2014 10:26: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 o3sm105086685wiz.24.2014.07.06.10.26.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jul 2014 10:26:03 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Stefano Stabellini , Konrad Rzeszutek Wilk , Jingoo Han , Daniel Vetter , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: xen-fbfront.c: Cleaning up useless assignment of function parameter Date: Sun, 6 Jul 2014 19:27:20 +0200 Message-Id: <1404667640-14855-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 Acked-by: Stefano Stabellini --- drivers/video/fbdev/xen-fbfront.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/xen-fbfront.c b/drivers/video/fbdev/xen-fbfront.c index 901014b..e1207a1 100644 --- a/drivers/video/fbdev/xen-fbfront.c +++ b/drivers/video/fbdev/xen-fbfront.c @@ -222,7 +222,6 @@ static int xenfb_setcolreg(unsigned regno, unsigned red, unsigned green, red = CNVT_TOHW(red, info->var.red.length); green = CNVT_TOHW(green, info->var.green.length); blue = CNVT_TOHW(blue, info->var.blue.length); - transp = CNVT_TOHW(transp, info->var.transp.length); #undef CNVT_TOHW v = (red << info->var.red.offset) |