mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
cec: Fix kernel log spam when cec is disabled
This commit is contained in:
committed by
Mauro (mdrjr) Ribeiro
parent
1f7d2c94ea
commit
0bc6b13d92
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user