Skip to content

Commit 6414b79

Browse files
tititiou36Georgi Djakov
authored andcommitted
interconnect: imx: Remove a useless test
'dn' can't be NULL here, it is tested just the line above. Remove this useless test. Signed-off-by: Christophe JAILLET <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent c6174c0 commit 6414b79

File tree

1 file changed

+1
-1
lines changed
  • drivers/interconnect/imx

1 file changed

+1
-1
lines changed

drivers/interconnect/imx/imx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static int imx_icc_node_init_qos(struct icc_provider *provider,
9696
return -ENODEV;
9797
}
9898
/* Allow scaling to be disabled on a per-node basis */
99-
if (!dn || !of_device_is_available(dn)) {
99+
if (!of_device_is_available(dn)) {
100100
dev_warn(dev, "Missing property %s, skip scaling %s\n",
101101
adj->phandle_name, node->name);
102102
of_node_put(dn);

0 commit comments

Comments
 (0)