drm: zte: fix device_node_continue.cocci warnings
Subsystems (2)
PATCH v2 1/1 drm: zte: fix device_node_continue.cocci warnings
From: Fengguang Wu <[email protected]>
Device node iterators put the previous value of the index variable, so an explicit put causes a double put.
Generated by: scripts/coccinelle/iterators/device_node_continue.cocci
---
v2: correct driver name in subject line
url:
https://github.com/0day-ci/linux/commits/Laurent-Pinchart/Cargo-cult-cleanup-in-atomic-drivers/20180120-183018
base: git://people.freedesktop.org/~airlied/linux.git drm-next
:::::: branch date: 3 hours ago
:::::: commit date: 3 hours ago
Please take the patch only if it's a positive warning. Thanks!
zx_drm_drv.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/zte/zx_drm_drv.c +0 -1
@@ -163,7 +163,6 @@ static int zx_drm_probe(struct platform_for_each_available_child_of_node (parent, child) {component_match_add (dev, &match, compare_of, child); -of_node_put (child); }return component_master_add_with_match (dev, &zx_drm_master_ops, match);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel