]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Drop !clk checks in debugfs dumping
authorStephen Boyd <sboyd@kernel.org>
Mon, 26 Aug 2019 23:47:29 +0000 (16:47 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 19 Sep 2019 22:26:36 +0000 (15:26 -0700)
commit4f5429902d4ace53da10bbbc0ecb6d254cc0fd79
tree51f9dc10b1f6f30793c8ea65b412cfb60645c23b
parent48fa3767489121e1dca1276585bf12c982d1ea3a
clk: Drop !clk checks in debugfs dumping

These recursive functions have checks for !clk being passed in, but the
callers are always looping through lists and therefore the pointers
can't be NULL. Drop the checks to simplify the code.

Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20190826234729.145593-1-sboyd@kernel.org
drivers/clk/clk.c