[media] smiapp: Remove unnecessary BUG_ON()'s
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 6 Sep 2016 12:51:17 +0000 (09:51 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 16:59:07 +0000 (14:59 -0200)
commit624e9896c5bffee146ebb05b9366f8dc3f8b54aa
tree2d7765ccfb60b5edb9bb2e11ee8a871c81bfa706
parent6c5ff7c8e8800c95be96c59f02ea31b8860ad745
[media] smiapp: Remove unnecessary BUG_ON()'s

Instead, calculate how much is needed and then allocate the memory
dynamically.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/smiapp/smiapp-core.c
drivers/media/i2c/smiapp/smiapp.h