Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe JAILLET and committed by
Georgi Djakov
6414b79d c6174c0e

+1 -1
+1 -1
drivers/interconnect/imx/imx.c
··· 96 96 return -ENODEV; 97 97 } 98 98 /* 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)) { 100 100 dev_warn(dev, "Missing property %s, skip scaling %s\n", 101 101 adj->phandle_name, node->name); 102 102 of_node_put(dn);