Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1237609iol; Fri, 10 Jun 2022 03:20:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAAHwZDC+N+IHCYWHLgu6B9ItwkljxjoICJNVj/w1bnzy1moLJUiBCbhNIPj3ClNh034Es X-Received: by 2002:a17:90a:7846:b0:1e3:3025:6717 with SMTP id y6-20020a17090a784600b001e330256717mr7977493pjl.29.1654856451228; Fri, 10 Jun 2022 03:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654856451; cv=none; d=google.com; s=arc-20160816; b=lQzW2aJ5qcNwyC3cMkyDUzHrs9gJ2fdjQuI3Oo/NUT2tkaq/32oS4RCwVB6dpb0/Mq V84ikx7ax/jfwpul3oSa76qjeNjf1B1Rx24CwgZmYZThP7EkNggsjBA7ElyFU2XWe/ZI q0eOqj4I28k8TVbx6m3CXztNZrw07oSlc3efPjkrq4qiZTK7V3MlWiGdDY/1eU3Vet6B Rs5Ozht8P4BrKoTAhLgu+TBmQOVAO5pjgfB+FBnnpwi5BnHjWS2wVppFKAcQtZB09nj5 MrHtSNSLALlrmnF7k2LPNctDJzfaY69x6nEYOcRLL8UWGsNcdO8oYUrN+MaZePXtmHA4 Y8Hw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yWJvoiAriZtPO8uV9CAAUd+HIJ+7vPkfwAAVFGSq6fc=; b=jHDJGX1rIw8t5omECU+nnvYzDO5FEjDP1ztmllGpenxkOCzO/Oy/gjq1Tvq+eirDXx tpEYpXDgP0DDZvk0ktFCodYtvcEwRcZRmGiVTnxGAfdQSHzB04jPDNUkNcldiEMG2CO+ O7/5PleYlivIwRQy7i/iyp6XFL0A+CleGinGt55mG9gfH4NTCRZU7If1bLA0k2ES4DQe GzAXSdL8jaTFNTMCPCrAORzY/vyx7s7NpdSw+ayXhD8aGKT5hoKrlAiizeaKruvw67OV rSVUa8dexWk6jhMRrR6Juitn6/MABc9x9dz3k0yUStTjbIhMSyATrXlvK8+EUg0BnrB0 G6PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XUo6m7IX; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 71-20020a63054a000000b003c1725602b4si36582635pgf.627.2022.06.10.03.20.38; Fri, 10 Jun 2022 03:20:51 -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=@linuxfoundation.org header.s=korg header.b=XUo6m7IX; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347874AbiFJJBN (ORCPT + 99 others); Fri, 10 Jun 2022 05:01:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244939AbiFJJBK (ORCPT ); Fri, 10 Jun 2022 05:01:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5094B212C82; Fri, 10 Jun 2022 02:01:10 -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 ams.source.kernel.org (Postfix) with ESMTPS id 099ECB832CB; Fri, 10 Jun 2022 09:01:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A87EC34114; Fri, 10 Jun 2022 09:01:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654851667; bh=fUOL3Ydks9k3rSvCoOT8c0eo7uVClb98PR2l6eqO//Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XUo6m7IX2j1atBpivpFUxxlH0gU7Vk40IJRi70t8waR74t+UZwLZzWAgVXmGZPdYm o4Z0NYludwDEMHb3jbyVJNepvjOcLzRnQsijisTo+YA1r2asAWkxoBJ53HhEXLUCrr OaTDsbq0rNyt4becwKDzWgG+evOcrGXil4BOjlvM= Date: Fri, 10 Jun 2022 11:01:04 +0200 From: Greg Kroah-Hartman To: Yihao Han Cc: Felipe Balbi , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: phy: tahvo: Check before clk_disable() not needed Message-ID: References: <20220610074525.69453-1-hanyihao@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220610074525.69453-1-hanyihao@vivo.com> X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, Jun 10, 2022 at 12:45:25AM -0700, Yihao Han wrote: > clk_disable() already checks the clk ptr using IS_ERR_OR_NULL(clk) It does? Are you sure? It will check for NULL, that's it. > so there is no need to check it again before calling it. This will break on some platforms, please always test your patches before sending them out. thanks, greg k-h