Received: by 10.223.185.116 with SMTP id b49csp1131292wrg; Fri, 23 Feb 2018 12:29:13 -0800 (PST) X-Google-Smtp-Source: AH8x227sBAhQfFAYpxQFvOOa+7N2SYZViGN4GJEUxf09lognFrLNO6j9EK8DXXzT26xWs+3AC8+D X-Received: by 2002:a17:902:4201:: with SMTP id g1-v6mr2817757pld.62.1519417753417; Fri, 23 Feb 2018 12:29:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417753; cv=none; d=google.com; s=arc-20160816; b=wKHgOXy1Um35ZTkk3ObKYGh6u2VL2X9+BZGGP+DxhljGkbPEYB3arv/icUPGvzoSKS dYIl3GgmWcGoVYZ69KzodS01IBzA9+bK7RA/sTFrlsztlM60rEMXSFO3t5DZG8EYzPYg llYX5h99kvsNe9HiCXB51xvLaHO6kOxyWuPaFlea8b8KACBxOljKCAQ/4i/n+Nml7UKT OaIoY78eUzh5mDfjgLB4PR1u24IA7IL/B21isaI5E8HwEvBy0I9NLfIjzOM3LFeqyS/2 es0KBqzR9522RVqdQF8qjP9ZvhzHTkDBNGJUECXJXLAQ0glSy2r7PDN14IJPLXDLQnyh hljA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=st+zQrHebBP/F9IwvDj6RTquWRbzr2LunVebVkqqL40=; b=zs7sWxPDuoq/DlwEQu0g5+rU4knIxEhAbCQneaQbYtQRGHOR8Tjhw3KbYdHQ4XypPP 18xRU1JEjRMvUISNdHzDrwaNF71FK0zo3f8JW2GlWlKU2PgJlqYAuPv609fFhsXJWb0s PbgXrgItmaKcT1b0nb+U4ntybXic7iPp7mLaVEg3HGJ+mbGBOK+WGLW5leGQ6Fbn7E/b EOB7FSalqfDDmEx48tv2TL9za5/YlQOowHTFl1v0mMvm1JoKmnlkjGBIZfU2SkVgdjcR h33hR+49nZtigI2H6qYd2CooFP9hKp190BoXPz/qdEkGFbfVfgGvV4e0uL8L2RIFfquM r8Dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si2311867pfl.304.2018.02.23.12.28.59; Fri, 23 Feb 2018 12:29:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754149AbeBWShB (ORCPT + 99 others); Fri, 23 Feb 2018 13:37:01 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38262 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753303AbeBWSg7 (ORCPT ); Fri, 23 Feb 2018 13:36:59 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id ACEFD89C; Fri, 23 Feb 2018 18:36:58 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sudip Mukherjee , Tomi Valkeinen Subject: [PATCH 4.4 093/193] video: fbdev: sis: remove unused variable Date: Fri, 23 Feb 2018 19:25:26 +0100 Message-Id: <20180223170340.563013348@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sudip Mukherjee commit 32ad61951574d011d363694d6037592e99da9421 upstream. The variables modeflag and resinfo were only assigned some value but were never used. Signed-off-by: Sudip Mukherjee Signed-off-by: Tomi Valkeinen Signed-off-by: Greg Kroah-Hartman --- drivers/video/fbdev/sis/init301.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) --- a/drivers/video/fbdev/sis/init301.c +++ b/drivers/video/fbdev/sis/init301.c @@ -2151,17 +2151,15 @@ SiS_GetVCLK2Ptr(struct SiS_Private *SiS_ 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 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 * 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)) {