Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp480195imn; Tue, 26 Jul 2022 00:33:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sADkL/HBC2+uwqp5U+EmjLq+fobETNXBzRkaOSQaWhrBD/D5tLZMSMO652D3E5fu5KgeC8 X-Received: by 2002:a05:6a00:3392:b0:52b:4896:b317 with SMTP id cm18-20020a056a00339200b0052b4896b317mr16399680pfb.17.1658820788629; Tue, 26 Jul 2022 00:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658820788; cv=none; d=google.com; s=arc-20160816; b=jw5fknlNESwYi1q0EGeUuhznwRxt9+1e7OhNJA80rmoQ1FTs3HRwb5qylmabbYygkx OvjbXvBJvvlCpqmK6y24dwGzYA72x3mGnnOe3A+mHoSnkJoOIa4VP41MljDE4zSna5cF xO1nBFbVdYNH5xkqdqeast8FdiBFoEmTOzV/DwaxiLPDdkwryUjoJGnCQgdl785wRh9p C0XQOGQCyLyWU/u5vsTa59hgcyHF5LCtHpi4uBnQsrqRToKJl6hbsQPi4/wK3+xSjUnS n+xy4Phe9RCYNcIFDMxbXIKHASSZ3ysooJ2XS4QJT7KV7UJIIQcz+JkkOaFZREB9VYLd DqMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=R5YbsijovT19fU6c5ySLJ21It4CrzZRKtyZ9WqVIifA=; b=G01EbUTxua66BoGlKO05elSdmdBtTXgHUsoM1rPG06fItYYan7ldp2epWpRAKBKAns SqhgUQRkM4U1gC2c1od2wtFEK6CGBTgejNOa7qD+jFUpJcQD6DNtGzqCpNMHHZ/eO/tk DMxTId0IXu/XEWXGzzM1+WztDRg6qLCJAyXxECYrq6kgevRBvS6AFKLD+c4raZZ7Jquy fStXB+wXZ50B88tH6hyUpBvhVPnezloMN8fvlysED7s1nQhthNCExjd9hVbBAwdVD9dZ 5+3te10yRK6E4whJrm0Glkrwr/IYF4DSgN2z8Ayc5p/Toh9hn9ykJTxEz/d20llf079Y KfOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=I4GxEmbk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a056a00190c00b00528d5546dcesi17680847pfi.267.2022.07.26.00.32.53; Tue, 26 Jul 2022 00:33:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=I4GxEmbk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237934AbiGZHSv (ORCPT + 99 others); Tue, 26 Jul 2022 03:18:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236998AbiGZHSt (ORCPT ); Tue, 26 Jul 2022 03:18:49 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFA962AC43; Tue, 26 Jul 2022 00:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1658819919; bh=ZPKphOeqfUw9WDoxNukLO0XgQuydZuPrmVSi1WhjzL0=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=I4GxEmbkCE75KR9vBC9vuzgAS7DnwJcFXtw4wbeLRpdzQM4cFd9CzOGbn82y/z5Sw ORuEcPu167u79eXuU42E7wQor8PHxf/kl+sB3+6FYsUfw3Luf0oRHnG6CqBOQqWi0I 9fGuaFWYSCMg5vd8d2rLp8VBmMO6r+3qkC7A1Vqs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.186.181]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MeU4y-1nfnch1Et2-00aY10; Tue, 26 Jul 2022 09:18:39 +0200 Message-ID: <954de293-cd67-2f79-0529-cf7682279ae4@gmx.de> Date: Tue, 26 Jul 2022 09:17:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] video/fbdev/sis: fix typos in SiS_GetModeID() Content-Language: en-US To: Rustam Subkhankulov , Thomas Winischhofer Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Alexey Khoroshilov , ldv-project@linuxtesting.org References: <20220718124344.46338-1-subkhankulov@ispras.ru> From: Helge Deller In-Reply-To: <20220718124344.46338-1-subkhankulov@ispras.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:P5mZADKMLRDWe3X4DmUtFoBv9opTumb0nFI36Uuvewk9/mngzVd Z/dJrhiSv1ZxtOtlsg/WRmvBg/rKy1cjRwdhZg4ttzxCD/c8Db5EUZvW4U+giGeJQ+BaePA kOdzkpAiCW5F2SR1m5gH5JVC1Fap1tvHBz4OV0mpKQm2FS4wZ4wqP29Kh6twEtthZEvtmcI n3QiYZgCikPaaQJawJMJA== X-UI-Out-Fil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b4 o0AMkCHa7lJ3rMR+JQrlpmujTd0+vaD+t7HFMpLfgV1PWGUzO6G0Qj0KwLjPykJFlFCoWPQB/ PQwr5eXl4qxVGLhJht4hMz8ibqmBHY96o3C+Nd2G8Hfd1W1mUMbjucMIg== X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/18/22 14:43, Rustam Subkhankulov wrote: > The second operand of a '&&' operator has no impact on expression > result for cases 400 and 512 in SiS_GetModeID(). > > Judging by the logic and the names of the variables, in both cases a > typo was made. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Rustam Subkhankulov > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") applied to fbdev git tree. Thanks! Helge > --- > drivers/video/fbdev/sis/init.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/video/fbdev/sis/init.c b/drivers/video/fbdev/sis/in= it.c > index b568c646a76c..2ba91d62af92 100644 > --- a/drivers/video/fbdev/sis/init.c > +++ b/drivers/video/fbdev/sis/init.c > @@ -355,12 +355,12 @@ SiS_GetModeID(int VGAEngine, unsigned int VBFlags,= int HDisplay, int VDisplay, > } > break; > case 400: > - if((!(VBFlags & CRT1_LCDA)) || ((LCDwidth >=3D 800) && (LCDwidth >=3D= 600))) { > + if((!(VBFlags & CRT1_LCDA)) || ((LCDwidth >=3D 800) && (LCDheight >= =3D 600))) { > if(VDisplay =3D=3D 300) ModeIndex =3D ModeIndex_400x300[Depth]; > } > break; > case 512: > - if((!(VBFlags & CRT1_LCDA)) || ((LCDwidth >=3D 1024) && (LCDwidth >= =3D 768))) { > + if((!(VBFlags & CRT1_LCDA)) || ((LCDwidth >=3D 1024) && (LCDheight >= =3D 768))) { > if(VDisplay =3D=3D 384) ModeIndex =3D ModeIndex_512x384[Depth]; > } > break;