Re: [PATCH v2] brcmfmac: Remove #ifdef guards for PM related functions

From: Jeff Johnson
Date: Fri Jun 24 2022 - 12:31:29 EST


On 6/24/2022 2:24 AM, Arend Van Spriel wrote:
On 6/23/2022 2:42 PM, Paul Cercueil wrote:

[snip]

-    if (sdiodev->freezer) {
+    if (IS_ENABLED(CONFIG_PM_SLEEP) && sdiodev->freezer) {

This change is not necessary. sdiodev->freezer will be NULL when CONFIG_PM_SLEEP is not enabled.

but won't the compiler be able to completely optimize the code away if the change is present?