From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: drm/panfrost: Drop redundant optional clock checks in runtime PM Date: Sun, 22 Mar 2026 03:29:03 +1000 Message-ID: In-Reply-To: <20260320164158.487406-3-biju.das.jz@bp.renesas.com> References: <20260320164158.487406-1-biju.das.jz@bp.renesas.com> <20260320164158.487406-3-biju.das.jz@bp.renesas.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review The commit message correctly explains that `clk_enable(NULL)` returns 0 and `clk_disable(NULL)` is a no-op, so the `if (pfdev->bus_clock)` guards are unnecessary. **Observation:** This patch only removes the NULL checks in `panfrost_device_runtime_resume()` and `panfrost_device_runtime_suspend()` (the `GPU_PM_RT` path), but leaves identical redundant checks in `panfrost_device_resume()` and `panfrost_device_suspend()` (the `GPU_PM_CLK_DIS` path): ```c // panfrost_device_resume() still has: if (pfdev->bus_clock) { ret = clk_enable(pfdev->bus_clock); // panfrost_device_suspend() still has: if (pfdev->bus_clock) clk_disable(pfdev->bus_clock); ``` For consistency, it would be cleaner to also drop those guards in the same patch. Not a blocking issue since the `GPU_PM_CLK_DIS` path is a separate code path, but it would be more complete. The change itself is correct. --- Generated by Claude Code Patch Reviewer