[PATCH v4 4/5] wifi: brcmfmac: Add optional lpo clock enable support

Jacobe Zang jacobe.zang at wesion.com
Mon Jul 29 00:17:00 PDT 2024


>> +     clk = devm_clk_get_optional_enabled(dev, "lpo");
>> +     if (IS_ERR(clk))
>> +     if (clk) {
>
> These two lines looks really confusing.  Shouldn't it be just a single
> "if (!IS_ERR(clk)) {" line instead?

Thanks for the correction... I forgot to organize this...

---
Best Regards
Jacobe



More information about the Linux-rockchip mailing list