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/mxsfb/lcdif: simplify ep pointer management using __free Date: Sun, 12 Apr 2026 13:37:33 +1000 Message-ID: In-Reply-To: <20260407-drm-lcdif-dbanc-v4-2-247a16e61ef9@bootlin.com> References: <20260407-drm-lcdif-dbanc-v4-0-247a16e61ef9@bootlin.com> <20260407-drm-lcdif-dbanc-v4-2-247a16e61ef9@bootlin.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Patch Review Converts the `ep` iterator variable to use `__free(device_node)`: ```c - struct device_node *ep; + struct device_node *ep __free(device_node) = NULL; ``` This works correctly with `for_each_endpoint_of_node()` because that macro manages the iteration refcounts, and `__free` handles the case where we return mid-loop (the previous code had explicit `of_node_put(ep)` before each `return`). The removal of all those `of_node_put(ep)` calls is correct. No issues. --- --- Generated by Claude Code Patch Reviewer