Skip to contentSkip to conversation

drm: zte: fix device_node_continue.cocci warnings

PATCH New Julia Lawall 1 participant 1 message Jan 22, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Fixes 88e6e13dd66c ("drm: vc4: Use drm_atomic_helper_shutdown() to disable planes on removal")

---

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