From: Mauro Carvalho Chehab Date: Tue, 19 May 2015 11:00:56 +0000 (-0300) Subject: [media] usb drivers: use BUG_ON() instead of if () BUG X-Git-Tag: omap-for-v4.3/legacy-v2-signed~140^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09f2082e23ad8e89e10152b8701d3511ace45290;p=pandora-kernel.git [media] usb drivers: use BUG_ON() instead of if () BUG Some USB drivers have a logic at the VB buffer handling like: if (in_interrupt()) BUG(); Use, instead: BUG_ON(in_interrupt()); Btw, this logic looks weird on my eyes. We should convert them to use VB2, in order to avoid those crappy things. Signed-off-by: Mauro Carvalho Chehab Acked-by: Lad, Prabhakar Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed