From patchwork Fri Mar 8 19:31:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Devendra Naga X-Patchwork-Id: 2240181 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3E9244006E for ; Fri, 8 Mar 2013 19:31:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751859Ab3CHTba (ORCPT ); Fri, 8 Mar 2013 14:31:30 -0500 Received: from mail-pb0-f52.google.com ([209.85.160.52]:37419 "EHLO mail-pb0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917Ab3CHTba (ORCPT ); Fri, 8 Mar 2013 14:31:30 -0500 Received: by mail-pb0-f52.google.com with SMTP id ma3so1510689pbc.39 for ; Fri, 08 Mar 2013 11:31:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=FxMyFsLwb7Gu4OU7HF5bxSCfhoeo5XB3MEETyOgxiLE=; b=MWWMWktmmeu4nqBKPYhm2xvlmb8XQQoiZDgffxDaKJeJzwBRXpnv+4EaZjx+0zET9c i4RFUoLD0HPCcBkL5CzPoT7MhF4fxwCnZbuBhNTQ4C4CXx6H2HlhfnM4K2Y+aUI/aRcQ 7J6kekmAoYW9UvJaX5FAfkxOg/pCaS3a6gLEomWxwp25hrjisPzQzh9HkZKozViHr3Dy 54yOu0yjn96+6EYdVXkoDd5Q1pDFFX2vUXY199iBbz3RMckmdq1nCwl2q9QKCRN9LUlj 3eK+XCX4hhT0BQJ00WmjNY/1Yjgc8ZSTeW/3vLaa8DGwOB1+coXkmqt5oJZbz7nesltl ts3g== X-Received: by 10.68.162.34 with SMTP id xx2mr5049104pbb.114.1362771089680; Fri, 08 Mar 2013 11:31:29 -0800 (PST) Received: from localhost.localdomain ([122.172.7.150]) by mx.google.com with ESMTPS id b9sm6504220pba.6.2013.03.08.11.31.25 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 08 Mar 2013 11:31:29 -0800 (PST) From: Devendra Naga To: Andrew Morton , Michael Hennerich , Richard Purdie , device-drivers-devel@blackfin.uclinux.org, linux-fbdev@vger.kernel.org Cc: Devendra Naga , "Antonino A. Daplas" Subject: [PATCH 3/3] drivers: video: console: fbcon_cw: fix compiler warning in cw_update_attr Date: Fri, 8 Mar 2013 14:31:09 -0500 Message-Id: <1362771069-16345-3-git-send-email-devendra.aaru@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1362771069-16345-1-git-send-email-devendra.aaru@gmail.com> References: <1362771069-16345-1-git-send-email-devendra.aaru@gmail.com> MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org with make W=1 saw drivers/video/console/fbcon_cw.c: In function ‘cw_update_attr’: drivers/video/console/fbcon_cw.c:30:8: warning: variable ‘t’ set but not used [-Wunused-but-set-variable] fixed by removing as since its used nowhere Cc: Antonino A. Daplas Signed-off-by: Devendra Naga --- drivers/video/console/fbcon_cw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/console/fbcon_cw.c b/drivers/video/console/fbcon_cw.c index 6a73782..a93670e 100644 --- a/drivers/video/console/fbcon_cw.c +++ b/drivers/video/console/fbcon_cw.c @@ -27,7 +27,7 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute, { int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; int width = (vc->vc_font.height + 7) >> 3; - u8 c, t = 0, msk = ~(0xff >> offset); + u8 c, msk = ~(0xff >> offset); for (i = 0; i < vc->vc_font.width; i++) { for (j = 0; j < width; j++) { @@ -40,7 +40,6 @@ static void cw_update_attr(u8 *dst, u8 *src, int attribute, c = ~c; src++; *dst++ = c; - t = c; } } }