From patchwork Mon Feb 29 18:02:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 8456881 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F0B089F38C for ; Mon, 29 Feb 2016 18:03:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 16EF520145 for ; Mon, 29 Feb 2016 18:03:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 322052010F for ; Mon, 29 Feb 2016 18:03:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751480AbcB2SDA (ORCPT ); Mon, 29 Feb 2016 13:03:00 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34919 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751070AbcB2SC7 (ORCPT ); Mon, 29 Feb 2016 13:02:59 -0500 Received: by mail-pa0-f48.google.com with SMTP id bj10so26510235pad.2; Mon, 29 Feb 2016 10:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=zOVRIpL39/qKFEFD3LXEyshf6PbwN5gQqjMFyT31qD4=; b=YHyq62koC1SZGM7w5vp+HXJ2br+cB+kwSvd4MNo9RBJ6hgbLPE7FIpsfr82A0k2e2Y AC3YzAd4vqfQo2FgQcYU0uyTsmUZcYps9TmtQHj8uRXMEUsFoD/DYjstRny8cvg34lvW nCpFnrr9nV9dCEHabgfBX5lCpP+H7u8XnDpJt/wQmCQmMBtc2GH8VNcCijs11InATCIa 5+zbLo6/96WhmKIgP7Bi46fPMiIvKCt1Lq5SDMzRjBq1QNn7vxcgbIYfSlc6dWep1ssb DYP/aL1Ls+DoH/HLcCIULu7L6uCpy5Cv5QsfDVMdr+4PoM+MHwNOb3pFU//jbicT/lwq Ds9Q== 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=zOVRIpL39/qKFEFD3LXEyshf6PbwN5gQqjMFyT31qD4=; b=i1PhMo9kjBD94G+k9NwhMhUKsrexN+E2HESu1+1BGSdUg43zE1IhyL+PKr9U3rMxlD HVYkMbU7TYl1L2o+spjk4/6biYPZtdqWA8q/6b/GqgAuG3xYVpC+1Fa34siSC7rxReQI s+VMqgbc8qFbmZWHp+5mWl8Ow6Ntm8oUtfRUKHpwL76uVCLddT/WG7QWQDY/uhCR0VsM IGdGFlDUzqGV/SZAkrJQ/oJpmnO90yku6RntyEwAcHjUTzOCIakYVVPxuOxC//9hFhb+ sdoNbRlRQRGWBFieK+bXQEhulsdF4xA9y770dP6QoKJ6Fm9GTWUHCGykSmXRvCCe8bTy TJtQ== X-Gm-Message-State: AD7BkJKM/ZAJr0izM1HPst1ws2l383QiiV5PCVzN4E68fNtxXMev3JEZcdfatl3F75mGLQ== X-Received: by 10.66.193.202 with SMTP id hq10mr23400545pac.6.1456768978655; Mon, 29 Feb 2016 10:02:58 -0800 (PST) Received: from localhost.localdomain ([103.24.124.195]) by smtp.gmail.com with ESMTPSA id u84sm39617551pfa.57.2016.02.29.10.02.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Feb 2016 10:02:57 -0800 (PST) From: Sudip Mukherjee To: Thomas Winischhofer , Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, Sudip Mukherjee Subject: [PATCH] video: fbdev: sis: remove unused variable Date: Mon, 29 Feb 2016 23:32:29 +0530 Message-Id: <1456768949-27318-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 The variables modeflag and resinfo were only assigned some value but were never used. Signed-off-by: Sudip Mukherjee --- drivers/video/fbdev/sis/init301.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/video/fbdev/sis/init301.c b/drivers/video/fbdev/sis/init301.c index 295e0de..20f7234 100644 --- a/drivers/video/fbdev/sis/init301.c +++ b/drivers/video/fbdev/sis/init301.c @@ -2151,17 +2151,15 @@ SiS_GetVCLK2Ptr(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned shor unsigned short RefreshRateTableIndex) { unsigned short CRT2Index, VCLKIndex = 0, VCLKIndexGEN = 0, VCLKIndexGENCRT = 0; - unsigned short modeflag, resinfo, tempbx; + unsigned short resinfo, tempbx; const unsigned char *CHTVVCLKPtr = NULL; if(ModeNo <= 0x13) { - modeflag = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ModeFlag; resinfo = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_ResInfo; CRT2Index = SiS_Pr->SiS_SModeIDTable[ModeIdIndex].St_CRT2CRTC; VCLKIndexGEN = (SiS_GetRegByte((SiS_Pr->SiS_P3ca+0x02)) >> 2) & 0x03; VCLKIndexGENCRT = VCLKIndexGEN; } else { - modeflag = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_ModeFlag; resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; CRT2Index = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRT2CRTC; VCLKIndexGEN = SiS_Pr->SiS_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK; @@ -7270,7 +7268,7 @@ SiS_ShiftXPos(struct SiS_Private *SiS_Pr, int shift) static void SiS_SetGroup4_C_ELV(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex) { - unsigned short temp, temp1, resinfo = 0; + unsigned short temp, temp1; unsigned char *ROMAddr = SiS_Pr->VirtualRomBase; if(!(SiS_Pr->SiS_VBType & VB_SIS30xCLV)) return; @@ -7282,10 +7280,6 @@ SiS_SetGroup4_C_ELV(struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned if(!(ROMAddr[0x61] & 0x04)) return; } - if(ModeNo > 0x13) { - resinfo = SiS_Pr->SiS_EModeIDTable[ModeIdIndex].Ext_RESINFO; - } - SiS_SetRegOR(SiS_Pr->SiS_Part4Port,0x3a,0x08); temp = SiS_GetReg(SiS_Pr->SiS_Part4Port,0x3a); if(!(temp & 0x01)) {