diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-11-04 10:29:48 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-11-25 14:41:40 +0100 |
commit | b5c17905fb97e4e3c2fccdd168f6d2e7d54076e5 (patch) | |
tree | d58399703fcf0f541ed938c29c656dcc88f63dd7 /drivers/media/i2c/mt9p031.c | |
parent | media: ov2740: allow OTP data access during streaming (diff) | |
download | linux-b5c17905fb97e4e3c2fccdd168f6d2e7d54076e5.tar.xz linux-b5c17905fb97e4e3c2fccdd168f6d2e7d54076e5.zip |
media: i2c: mt9p031: Remove redundant null check before clk_disable_unprepare
Because clk_disable_unprepare() already checked NULL clock parameter,
so the additional check is unnecessary, just remove it.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/mt9p031.c')
-rw-r--r-- | drivers/media/i2c/mt9p031.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c index dc23b9ed510a..a633b934d93e 100644 --- a/drivers/media/i2c/mt9p031.c +++ b/drivers/media/i2c/mt9p031.c @@ -346,8 +346,7 @@ static void mt9p031_power_off(struct mt9p031 *mt9p031) regulator_bulk_disable(ARRAY_SIZE(mt9p031->regulators), mt9p031->regulators); - if (mt9p031->clk) - clk_disable_unprepare(mt9p031->clk); + clk_disable_unprepare(mt9p031->clk); } static int __mt9p031_set_power(struct mt9p031 *mt9p031, bool on) |