Change-Id: If3696b4a33677f1a3d4db2fade1524a363d90fc7
{
int i, j;
- if (!p->present_flag & 1) {
+ if (!(p->present_flag & 1)) {
pr_csc(1, "\tmaster display color not available");
return;
}
frm_dif[N - 1] = frm_dif[N - 1] - frm_dif_osd;
valid_blk_num[N-1] = (blk_vnum - vnum_osd) * blk_hnum;
/*debug*/
- if ((amlc_debug == 0x4)) {
+ if (amlc_debug == 0x4) {
pr_info("#vnum_osd = %d;\n", vnum_osd);
pr_info("#valid_blk_num[%d] = %d\n",
N-1, valid_blk_num[N-1]);
err = oa - ia;
- if ((err < margin) && (err > -margin))
- err = err;
- else
+ if ((err > margin) && (err < -margin))
err = 0;
vdif_err = err_accum + err;