diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-12-28 15:03:02 +0300 |
---|---|---|
committer | Georgi Djakov <georgi.djakov@linaro.org> | 2020-12-28 15:03:02 +0300 |
commit | 6414b79d02c426b7dd7d942fc19fb38220ea44ec (patch) | |
tree | 90f61a7f3dfdca12ac27b91480cc642ea9c8343d | |
parent | c6174c0e058fc0a54e0b9787c44cb24b0a8d0217 (diff) | |
download | linux-6414b79d02c426b7dd7d942fc19fb38220ea44ec.tar.xz |
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>
-rw-r--r-- | drivers/interconnect/imx/imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/interconnect/imx/imx.c b/drivers/interconnect/imx/imx.c index e398ebf1dbba..c770951a909c 100644 --- a/drivers/interconnect/imx/imx.c +++ b/drivers/interconnect/imx/imx.c @@ -96,7 +96,7 @@ static int imx_icc_node_init_qos(struct icc_provider *provider, return -ENODEV; } /* Allow scaling to be disabled on a per-node basis */ - if (!dn || !of_device_is_available(dn)) { + if (!of_device_is_available(dn)) { dev_warn(dev, "Missing property %s, skip scaling %s\n", adj->phandle_name, node->name); of_node_put(dn); |