Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2836rwl; Tue, 28 Mar 2023 19:37:40 -0700 (PDT) X-Google-Smtp-Source: AKy350ZSblwGXAT+UJv6bDRz8X223O8Gxob47o8lhABCDAZ5Uf7oFEBPrF3nP1jIEu25qchncUFX X-Received: by 2002:a17:906:385b:b0:930:d552:5c23 with SMTP id w27-20020a170906385b00b00930d5525c23mr16170451ejc.56.1680057460233; Tue, 28 Mar 2023 19:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680057460; cv=none; d=google.com; s=arc-20160816; b=uPSFckPOGVeMnMeWL7JnvjPmxNJ+xmywFjYbqzOBH5geBfs2O7ugNlwgGl+jZEQPE+ WRNbMSS0pflhYnkrsatRN+43MSYd44rwkRA1u2YgYL89lUdMdQTxESpOHHLPZTiD6Xgx dgMNNXJs/ZevezlJDkPtJFaM37cPVNBCakLr2SALUCHyRynC9Gl9Eg+aIBl4DXppRH9R kMNH1IqZnDJQ6KLeu14Nr5sWH/V91nE3JqYWAXMJNJ7PmiJjzNviENXptMgOQBzxZMzx v4Rf71W5SiSiVBb9bdvtXtCdOt4GrgXrY5LHiTmH1lDSF1bEfxFqEi765X8BjYu8xIV0 cf7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=MyEuYDkf+StM1Q+SSNOS6qHcmlP6pXJ84tsG+a+VYtI=; b=ac5IoWsaRErLy/nIgMZng8587/GNiYekgRy5LBM8WNmqKZ76WwBcbJMevrC7XOYqB2 z0A6g8ptcFBKYvZhmtPMV2A38Zu+pvfdUpBx8iagojs8klTvFfIJ5o/QMQE9aZI31wV2 qTW0iiN1S17SvP5qzTYauzFV3MLkeFFuDhhGzf1IMlWcC4udz4VxPA4q2dY/Aim+aJil m3R0E12LCzQAn3oP7GXXhGtHGeayt236UIf2HSXCQGMIA0nZo7IXwlwQEc7E2rYwGYOO Zh0S+xHkifnbugZG6R6k++5tX1FZTU4pfjXasdERp1E1sO9yaMEAiRoaPOpyrh4L2cpq ErKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MpHaPOwj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u22-20020a170906951600b0092a8aa23062si29442725ejx.571.2023.03.28.19.37.14; Tue, 28 Mar 2023 19:37:40 -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=@kernel.org header.s=k20201202 header.b=MpHaPOwj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229456AbjC2Cfd (ORCPT + 99 others); Tue, 28 Mar 2023 22:35:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjC2Cfb (ORCPT ); Tue, 28 Mar 2023 22:35:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3D232D4F; Tue, 28 Mar 2023 19:35:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7BC1E61A3E; Wed, 29 Mar 2023 02:35:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4B3AC433D2; Wed, 29 Mar 2023 02:35:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680057326; bh=MyEuYDkf+StM1Q+SSNOS6qHcmlP6pXJ84tsG+a+VYtI=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=MpHaPOwjxk7af0XuvP347IXG2YhTqKdVHlpN3daFBHZs/FkFg6d3tkCtlbz4ylh9T /LcNRWdhXQJV2LbXfvQb25ihDzuvA6QDK7siWWdYFJTzg111MlMuptTQy0XJdSIEtY 58hmVFqa/Hvr7P+kWRj1FA/OIHcTYo32NWTkaPEo4dY7WIL3j3V70dSNtrDurMOV6U yUyYxxdiBqyV/Iztxgx6r1FaLa0k72LIsM9Kq5nRh88XCE/oWYt74hW044ApRaFH2+ ZeYyTo5JPyOPuWsNk3V2zXbaddwKPvCiXm3v1v0ihKWx7lI6+R7g3H0xAVjMKT/wDs daeCLDz6WPcPw== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230312161512.2715500-4-u.kleine-koenig@pengutronix.de> References: <20230312161512.2715500-1-u.kleine-koenig@pengutronix.de> <20230312161512.2715500-4-u.kleine-koenig@pengutronix.de> Subject: Re: [PATCH 03/30] clk: xilinx: Drop if block with always false condition From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Michael Turquette , Michal Simek , Uwe =?utf-8?q?Kleine-K=C3=B6nig?= Date: Tue, 28 Mar 2023 19:35:24 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Quoting Uwe Kleine-K=C3=B6nig (2023-03-12 09:14:45) > xvcu_remove() is only called for a device after after xvcu_probe() > completed successfully. In that case dev_set_drvdata() was called for > that device with a non-NULL parameter, so platform_get_drvdata() won't > return NULL and the if condition is never true. >=20 > Drop the if, preparing a conversion to make platform driver's remove > callback return void. >=20 > Signed-off-by: Uwe Kleine-K=C3=B6nig > --- Applied to clk-next