[media] smiapp: Remove validation of op_pix_clk_div
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 1 Apr 2014 21:47:55 +0000 (18:47 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 15:38:36 +0000 (13:38 -0200)
op_pix_clk_div is directly assigned and not calculated. There's no need to
verify it.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp-pll.c

index 862ca0ca53621a240406524d1adc20cf5db599da..0d5c50374c2c8487719e01dd3f28ba9a62998d61 100644 (file)
@@ -114,11 +114,6 @@ static int check_all_bounds(struct device *dev,
                        dev, op_pll->sys_clk_div,
                        op_limits->min_sys_clk_div, op_limits->max_sys_clk_div,
                        "op_sys_clk_div");
-       if (!rval)
-               rval = bounds_check(
-                       dev, op_pll->pix_clk_div,
-                       op_limits->min_pix_clk_div, op_limits->max_pix_clk_div,
-                       "op_pix_clk_div");
        if (!rval)
                rval = bounds_check(
                        dev, op_pll->sys_clk_freq_hz,