[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZzRm1SJTwEMRsAr8@wunner.de>
Date: Wed, 13 Nov 2024 09:44:05 +0100
From: Lukas Wunner <lukas@...ner.de>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Cc: linux-pci@...r.kernel.org, Bjorn Helgaas <bhelgaas@...gle.com>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Rob Herring <robh@...nel.org>, Krzysztof Wilczy??ski <kw@...ux.com>,
"Maciej W . Rozycki" <macro@...am.me.uk>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Alexandru Gagniuc <mr.nuke.me@...il.com>,
Krishna chaitanya chundru <quic_krichai@...cinc.com>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
"Rafael J . Wysocki" <rafael@...nel.org>, linux-pm@...r.kernel.org,
Smita Koralahalli <Smita.KoralahalliChannabasappa@....com>,
Daniel Lezcano <daniel.lezcano@...aro.org>,
Zhang Rui <rui.zhang@...el.com>, Lukasz Luba <lukasz.luba@....com>,
linux-kernel@...r.kernel.org, Amit Kucheria <amitk@...nel.org>,
Christophe JAILLET <christophe.jaillet@...adoo.fr>
Subject: Re: [PATCH v9 8/9] thermal: Add PCIe cooling driver
On Fri, Oct 18, 2024 at 05:47:54PM +0300, Ilpo Järvinen wrote:
> static void pcie_bwnotif_remove(struct pcie_device *srv)
> {
> + struct pcie_bwctrl_data *data = srv->port->link_bwctrl;
> +
> + if (data->cdev)
> + pcie_cooling_device_unregister(data->cdev);
> +
Just noting a minor nit here in what is now commit 7206400cda87
on pci/bwctrl: The NULL pointer check for data->cdev seems
redundant as pcie_cooling_device_unregister() just calls
thermal_cooling_device_unregister(), which in turn contains
this at the top:
if (!cdev)
return;
Thanks,
Lukas
Powered by blists - more mailing lists