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 <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/20201206121322.29434-1-christophe.jaillet@wanadoo.fr Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
1 parent c6174c0 commit 6414b79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/interconnect/imx

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)