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 Mauro (mdrjr) Ribeiro
parent 1f7d2c94ea
commit 0bc6b13d92

View File

@@ -2935,8 +2935,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;