cec: Fix kernel log spam when cec is disabled

This commit is contained in:
Ray
2019-04-11 11:57:21 +02:00
committed by Dongjin Kim
parent 53d5b25588
commit ebd6b1b549

View File

@@ -2673,8 +2673,12 @@ static ssize_t hdmitx_cec_write(struct file *f, const char __user *buf,
if (cec_cfg & CEC_FUNC_CFG_CEC_ON) {
/*cec module on*/
ret = cec_ll_tx(tempbuf, size);
}
if (ret == CEC_FAIL_NACK) {
return -1;
} else {
CEC_ERR("err:cec module disabled\n");
return size;
}
return ret;