Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp264983pxb; Thu, 12 Nov 2020 03:19:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNRXJqMxHviuIRNKVYPRNlHwl3D6LTmq4H7Yc5yOED+hqLIlHyWYFc5usEHMKxoZAC/uDW X-Received: by 2002:a05:6402:1206:: with SMTP id c6mr4483987edw.2.1605179984595; Thu, 12 Nov 2020 03:19:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605179984; cv=none; d=google.com; s=arc-20160816; b=MagdGwHFKsqKQUlxlyEic4lDmn4Nmcvo9MsXYrzF7jhxvM92AEHGldmreSxzvzADbP ptCoOUEPGcO8+l5jtrune9AAqkneyd9rMTc6x9Kr/LxRxgAdcuM3jUvG6c9CHLAe1xSi fojSKIQBLqm8VLlSfmK+Vp5p+prwqkDEk1RUoUiMh1y29M5ftLs8+3wsgdNo8kjVrJlN 3R3CodyuMCTLbgbgEmBfgs7EZK82gLot/dhhwO8OWGdHgHjlJh/DD9Ud0U30bDnb8wZM ILYIdUdOkdCBaR+D97kavws2A68Mur+B5gLDs6MiVddm9rpPeWh4QvbsWT4V2RHzxVWG uxfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=/FhKisUgi05Fi36Lpqm8o1v5iZqeSoZV/MjuIdxFVwg=; b=YmAUa05wBUB2BPAHyBWmoATtkBspGaQDbegWxEas78HV2KxSIg9kgjCW3Yxe3bK+iu YbVNLLZ7qoxnrr4dr7/18HyJwdCA93iPDC349+h8Qc8qjNol+GMhKhQlJB2qJUDmWYte SwjMyzp7gK72O+nY4WH971hKC//84e0uV4KjHj1UFmIM5bUh5c/uEPAk1QASaYJdD4ZE EXZANAMIJWHEoUv70gh7PJqutox4Kkujsx+ES1UjI9NQvMuGlQDcusT23P2wmqfpN50R SeGeJd1XFdg5GF3uNFpNnW7omKf59w8mzWfb//WUJkyl1xmFwOPpn8p2x822fZ87u40B AlXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ep5Jvcpk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v9si3600046ede.143.2020.11.12.03.19.19; Thu, 12 Nov 2020 03:19:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ep5Jvcpk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727223AbgKLLPf (ORCPT + 99 others); Thu, 12 Nov 2020 06:15:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbgKLLPd (ORCPT ); Thu, 12 Nov 2020 06:15:33 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BB3AC0613D1 for ; Thu, 12 Nov 2020 03:15:33 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id d142so4905870wmd.4 for ; Thu, 12 Nov 2020 03:15:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=/FhKisUgi05Fi36Lpqm8o1v5iZqeSoZV/MjuIdxFVwg=; b=ep5JvcpkgFIJ5q2HS/xiPhp7fZ1WmU0nCy25mzKSXLPh19xQj97YARcWa/ZkxIaHZn rf1D3pRLFBmPomdbvsD1SYdnx0BMstIqnOBnbWzlDtE/eBdrmnn0Ru4u5gSE+id3l0To EWatXOJKrMYxRdncb7jhpwxtZu1hzinTHQSyJZelfSh8K0RXB9Pkxl/p0yGa8Si7qmyK p/U5fWMG17qjmXXZfc2xykZ4YU+jt8UwT3g9zwIbvvs/SFzLP5VoL48+mYw0h6xFUolW qbI/atiaD2yZl3fROBjHkmY+6436T81WO+fvea07dkRxH8Ju8flpHTKlYBkOctqFoqas mfkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/FhKisUgi05Fi36Lpqm8o1v5iZqeSoZV/MjuIdxFVwg=; b=hbqKwNjEmZ6NMhf75QNTYvNyzcxrEtd37x+OnigvHfxhvfIyfAxzyLhsXm2HR6Yvyx 2HEsBADG2fifIWa+sW2dCItrXryryJ22OcLW89ZbStOQnkLiUNHEnpABVrjt1CKdF4U0 lf5S/lBxiH+Do9otuz2KyETpYXQEnM3E5QTo9SdoBgYuLJeLJSgTq+hpK5FZxIHDCyEV Rl5QQm+zY7L0EDhsSXiK9qN9tCLApU4Ft5qB4hF8EcyAmIUU3b9+xTADRuCsKRcijFkJ 4fG+DECjNqzdMrjILrdQJ0U5YRm1ByqWZdXZuVtx6NkUc4jX6TO0pngfQf3/7iC/xFQO VcZw== X-Gm-Message-State: AOAM533ai519vsUIkhUEV2+1xHmpS5vY56f4AUSxGqLbSGPChl/pJwHw Y8VbWFmM1TrcjV8aqHIiqCsK+fQ2OHnBEg== X-Received: by 2002:a7b:c11a:: with SMTP id w26mr9509953wmi.78.1605179732188; Thu, 12 Nov 2020 03:15:32 -0800 (PST) Received: from ?IPv6:2a01:e34:ed2f:f020:6971:b700:3764:fa96? ([2a01:e34:ed2f:f020:6971:b700:3764:fa96]) by smtp.googlemail.com with ESMTPSA id g186sm14107194wma.1.2020.11.12.03.15.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Nov 2020 03:15:31 -0800 (PST) Subject: Re: [Resend][PATCH] drivers/thermal: cleanup coding style a bit To: Bernard , Zhang Rui , Amit Kucheria , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com References: From: Daniel Lezcano Message-ID: <72dceb1f-64e7-c6dd-20c6-486e4002bbbc@linaro.org> Date: Thu, 12 Nov 2020 12:15:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/11/2020 09:10, Bernard wrote: > Function thermal_add_hwmon_sysfs, hwmon will be NULL when > new_hwmon_device = 0, so there is no need to check, kfree will > handle NULL point. > > Signed-off-by: Bernard Zhao > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog