]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit8d50e2f13bc5d34940c769f08311190d96a643ec
tree2d7765ccfb60b5edb9bb2e11ee8a871c81bfa706
parent27e8b3e4546d015640f8d4048cddee8a0f875e1d
[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