[media] atomisp: use logical AND, not bitwise

Fixes sparse warning "dubious: x & !y" in logical expression.

Signed-off-by: Guru Das Srinagesh <gurooodas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Guru Das Srinagesh 2017-05-18 10:50:11 -03:00 committed by Mauro Carvalho Chehab
parent 158aeefcb8
commit 86675eccd1
1 changed files with 1 additions and 1 deletions

View File

@ -1658,7 +1658,7 @@ ia_css_binary_find(struct ia_css_binary_descr *descr,
candidate->internal.max_height); candidate->internal.max_height);
continue; continue;
} }
if (!candidate->enable.ds && need_ds & !(xcandidate->num_output_pins > 1)) { if (!candidate->enable.ds && need_ds && !(xcandidate->num_output_pins > 1)) {
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_binary_find() [%d] continue: !%d && %d\n", "ia_css_binary_find() [%d] continue: !%d && %d\n",
__LINE__, candidate->enable.ds, (int)need_ds); __LINE__, candidate->enable.ds, (int)need_ds);