OSDN Git Service

media: omap2: omapfb: fix bugon.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Wed, 25 Jul 2018 17:57:00 +0000 (13:57 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 2 Aug 2018 23:01:38 +0000 (19:01 -0400)
commitf46bdacdc06a2256187f98d7d063d1bd5c318b12
tree84697fc6428818ac69575221ee792d6cd259a5fd
parent73fc60aa6386ecb4201908be42241dcbd790d556
media: omap2: omapfb: fix bugon.cocci warnings

drivers/video/fbdev/omap2/omapfb/dss/dss_features.c:895:2-5: WARNING: Use BUG_ON instead of if condition followed by BUG.
Please make sure the condition has no side effects (see conditional BUG_ON definition in include/asm-generic/bug.h)

 Use BUG_ON instead of a if condition followed by BUG.

Semantic patch information:
 This makes an effort to find cases where BUG() follows an if
 condition on an expression and replaces the if condition and BUG()
 with a BUG_ON having the conditional expression of the if statement
 as argument.

Generated by: scripts/coccinelle/misc/bugon.cocci

Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/video/fbdev/omap2/omapfb/dss/dss_features.c