Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp200420rdb; Tue, 31 Oct 2023 05:20:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH650yeVTtEkILtENyqsWPVBS6lsZZ2r7zMHAsQqPabV7DXOjSEkF5d52PnjIDLgNoRqykA X-Received: by 2002:a17:903:32c8:b0:1c3:e2eb:f79d with SMTP id i8-20020a17090332c800b001c3e2ebf79dmr3536954plr.8.1698754836191; Tue, 31 Oct 2023 05:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698754836; cv=none; d=google.com; s=arc-20160816; b=RDxvX+kEeVUhL+b8U9aa3v1SuZEzuNCy7vuDrButNmOA4FjZNYLWT3SSYhVWxc+CED aBFzblCeMOsBA2oqZk4NDuz3bqBrxclVvRe6uW7sEMdUCZFjFAuPmW65XFYpzV1q2QKn nK+69jX2wj82eXY21ScJ7YmxEP9O3nuUzSzc0PTmqU+YKkVXTyEeqnl9P5B8tDGDekkU BR2eh1wpmE/ldI9gYZmreMT7Oo82DUzPErnqdgLGAWdjPMCZ4tyQHUunJjtvoBqio2lo NlJBAyG6eKlHzEar2YK2bR2kJcvgP2WDZvsxxGf3ddy/nQKX6P+ZWatBsQ6pHqyAggtd ls7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=t5hOZP4uXq5btOwMkHYZJjUBfLXgrXa2+o62XfiF37s=; fh=mDOKH0aIskoPzqsJRr3OYf4xrA+5msdkLVD4qa0yUO8=; b=KXj5rNb9O0A1oDyO3TYcin7wj7002XkD2fXNcOsFxsQjCcTNSerwzEf8jQ4gR6WnhQ oEg1Lm3kqgo8CPR75Ea9rWk9txbPFJ32e9zzZSo7w1AnCzG2iXu1+4UgqyEdWjILkUIg lYeISylm5nGTRu1bL19Qiv9Jz54HaLTGDB4nRDdOCIeZ8nZcqYgHtiJ8NHdrnDcbnT6Y FH2+aF6r8Mf7Di7okC+Sr3bnDKPeHwo0oNHO3uedkIp581u5c9YTU78YqTkjoY14j/iJ PYYa8nQtyJv3JXXK15VELNJuBgoqf/H2wV29z/K85Hq0o+E3qVJeqkHEBnXsPYxwJtwQ V2HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="F/PbD1qC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v3-20020a655c43000000b005b5c924a6c6si944326pgr.744.2023.10.31.05.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 05:20:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="F/PbD1qC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B893E8021289; Tue, 31 Oct 2023 05:20:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344226AbjJaMUc (ORCPT + 99 others); Tue, 31 Oct 2023 08:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344219AbjJaMUa (ORCPT ); Tue, 31 Oct 2023 08:20:30 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C6D0DA; Tue, 31 Oct 2023 05:20:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47B11C433C7; Tue, 31 Oct 2023 12:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698754828; bh=yI9cIfjDH0p+ULOykOKr6PiIJjrMLZUkCkzDvV4S17A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F/PbD1qChBUcGOzVjCdP50zTg+0CzyiNe7xs7hlIkMO8lEikHuPOO3vEdSXX5Kj8h u1hUAEb5Ja5KG815zFuBi7QzNpoz/Uccm1sO74Qa9n65tz0ehnGHfGGXJysa7vXLYr atPnpm9IqDu3+G0BD0q+48ya4E73jCDl8I36kOBc= Date: Tue, 31 Oct 2023 13:20:24 +0100 From: Greg KH To: =?iso-8859-1?Q?Jos=E9?= Pekkarinen Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, skhan@linuxfoundation.org, dillon.varone@amd.com, linux-kernel-mentees@lists.linuxfoundation.org, dri-devel@lists.freedesktop.org, Xinhui.Pan@amd.com, linux-kernel@vger.kernel.org, samson.tam@amd.com, SyedSaaem.Rizvi@amd.com, aurabindo.pillai@amd.com, stable@vger.kernel.org, daniel@ffwll.ch, george.shen@amd.com, alexander.deucher@amd.com, Jun.Lei@amd.com, airlied@gmail.com, christian.koenig@amd.com Subject: Re: [PATCH] drm/amd/display: remove redundant check Message-ID: <2023103141-clear-scale-897a@gregkh> References: <20231030171748.35482-1-jose.pekkarinen@foxhound.fi> <2023103115-obstruct-smudgy-6cc6@gregkh> <3ab58c1e48447798d7525e7d2f42f1a2@foxhound.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3ab58c1e48447798d7525e7d2f42f1a2@foxhound.fi> X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 31 Oct 2023 05:20:34 -0700 (PDT) On Tue, Oct 31, 2023 at 01:42:17PM +0200, Jos? Pekkarinen wrote: > On 2023-10-31 07:48, Greg KH wrote: > > On Mon, Oct 30, 2023 at 07:17:48PM +0200, Jos? Pekkarinen wrote: > > > This patch addresses the following warning spotted by > > > using coccinelle where the case checked does the same > > > than the else case. > > > > > > drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c:4664:8-10: > > > WARNING: possible condition with no effect (if == else) > > > > > > Fixes: 974ce181 ("drm/amd/display: Add check for PState change in > > > DCN32") > > > > > > Cc: stable@vger.kernel.org > > > > Why is this relevant for stable? > > Hi, > > I was asked to send it for stable because this code > looks different in amd-staging-drm-next, see here. > > https://gitlab.freedesktop.org/agd5f/linux/-/blob/amd-staging-drm-next/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c#L4661 I don't know what I am looking at, sorry. > Feel free to let me know if this is wrong, or if I > need to review some other guidelines I may have missed. Please see the list of rules for stable patches: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html Does "remove code that does nothing" fit here? thanks, greg k-h