From patchwork Sat Jul 5 13:10:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 4488401 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 5B1FB9F358 for ; Sat, 5 Jul 2014 13:09:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8D92F202BE for ; Sat, 5 Jul 2014 13:09:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB3A32026C for ; Sat, 5 Jul 2014 13:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752961AbaGENJO (ORCPT ); Sat, 5 Jul 2014 09:09:14 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:36853 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752126AbaGENJN (ORCPT ); Sat, 5 Jul 2014 09:09:13 -0400 Received: by mail-wi0-f182.google.com with SMTP id bs8so4892041wib.9 for ; Sat, 05 Jul 2014 06:09:12 -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=rxWvH7UM19xs8UoTui9X7QG+QXm0d1Jj+7DL5M/9jsc=; b=nFnQBTdtCwEoxCJCaovO1xUHNrAsMo2oCHkKczwpa19+R/PyqnDF9qaTEK+pWndr8u XI0CZHGE3jDcFsK9X0Ij8NQg5Rh9lhFUM1PJHrgSRaMpdPZL4hKvdTWBpFXHja1ePdel KI4zmZkS99z9JcAP4X6n8rAcXPNwiF4F1TV3aRaK0fy1VVP4KzLmRa/WtVdAKt89CvfO nM11poykQJAwOOODs2sLYvSO6o1bl1th2g+sMi/snSBv3l0QfZRX5NtE5wFzQ9kcPXoT y6f5uTI97nEHBkpT/jT9jN/rhutGxKKBzaNGlFAtnS4BVhBrfb34WB5JAPhx/e07VXkL N13Q== X-Gm-Message-State: ALoCoQkfR4Y29kwlqMVKd2qZjABDKZc2fVtlN5JsZBZNqDavMmyAuTIDbxBt1BNFrknjxfpiHHEQ X-Received: by 10.180.198.116 with SMTP id jb20mr23781367wic.59.1404565752385; Sat, 05 Jul 2014 06:09:12 -0700 (PDT) Received: from localhost.localdomain (h-245-62.a218.priv.bahnhof.se. [85.24.245.62]) by mx.google.com with ESMTPSA id gr2sm51977791wib.19.2014.07.05.06.09.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Jul 2014 06:09:11 -0700 (PDT) From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , 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: Sat, 5 Jul 2014 15:10:29 +0200 Message-Id: <1404565829-22602-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/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) |