diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-07-26 15:05:52 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-11-25 11:38:40 +0300 |
commit | 1de49712936fbe57e5a0ca88b927345b8aea84a7 (patch) | |
tree | 616bb0e73417c81678e81d25f3ddceb0388f073b /drivers/media/i2c | |
parent | 1ba4b745a0e47d99ddbf79b12a65f543db91eb0e (diff) | |
download | linux-1de49712936fbe57e5a0ca88b927345b8aea84a7.tar.xz |
media: ov2740: Remove duplicate check for NULL fwnode
fwnode API does proper checks and returns correct codes, no need
to repeat it in the caller.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/ov2740.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c index d9d5ef2ba92b..00ae06567213 100644 --- a/drivers/media/i2c/ov2740.c +++ b/drivers/media/i2c/ov2740.c @@ -991,9 +991,6 @@ static int ov2740_check_hwcfg(struct device *dev) int ret; unsigned int i, j; - if (!fwnode) - return -ENXIO; - ret = fwnode_property_read_u32(fwnode, "clock-frequency", &mclk); if (ret) return ret; |