Re: [PATCH 1/1] PCI/ASPM: Remove pcie_aspm_enabled() unnecessary locking
From: Christoph Hellwig
Date: Thu Oct 10 2019 - 10:01:29 EST
On Thu, Oct 10, 2019 at 07:47:46AM -0500, Bjorn Helgaas wrote:
> + return bridge->link_state ? !!bridge->link_state->aspm_enabled : false;
Can we unobsfucated this while we're at it?
if (!bridge->link_state)
return false;
return bridge->link_state->aspm_enabled;