clk: cdce925: remove redundant check for non-null parent_name
authorColin Ian King <colin.king@canonical.com>
Tue, 5 Sep 2017 15:03:48 +0000 (16:03 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 14 Nov 2017 01:44:15 +0000 (17:44 -0800)
commit9416a5f8842a37dc356b7855867d20db6dfa9e3a
treeef0f903cf3f9aaecb6c470e3110a1edc6ba61506
parenta72da43c92dc09488ac2944b103de037c435302a
clk: cdce925: remove redundant check for non-null parent_name

The check for a non-null parent_name is always true as there is an
earlier check for a null parent_name that returns -ENODEV. Remove this
redundant check and always set init.num_parents to 1.

Detected by CoverityScan CID#1309477 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-cdce925.c