Commit 86675ecc authored by Guru Das Srinagesh's avatar Guru Das Srinagesh Committed by Mauro Carvalho Chehab

[media] atomisp: use logical AND, not bitwise

Fixes sparse warning "dubious: x & !y" in logical expression.
Signed-off-by: default avatarGuru Das Srinagesh <gurooodas@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 158aeefc
...@@ -1658,7 +1658,7 @@ ia_css_binary_find(struct ia_css_binary_descr *descr, ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment