media: omap3isp: Remove useless NULL check in omap3isp_stat_config
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 7 May 2018 12:37:48 +0000 (08:37 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 9 May 2018 20:37:36 +0000 (16:37 -0400)
commit170df32cadee0bc6eb6098a8cf4234ef1dc12f66
treef2184fb86cef0e2b33db4cdf14777d15ef35eba0
parent378e3f81cb5653b28100d3231db6da07b0581ff4
media: omap3isp: Remove useless NULL check in omap3isp_stat_config

The omap3isp driver checked whether the second argument (the new
configuration) to the ISP statistics is NULL. This is the pointer to the
user-given argument and is never NULL. Remove the check.

Reported-by: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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+samsung@kernel.org>
drivers/media/platform/omap3isp/ispstat.c