Commit b7c15d5d authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] saa7164: better handle error codes

Right now, the driver is doing the right thing for
PVC_ERRORCODE_UNKNOWN and PVC_ERRORCODE_INVALID_CONTROL:
for both, it returns an error code (SAA_ERR_NOT_SUPPORTED).

However, it is printing two error messages instead of one
on those cases.

Fix the logic.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 17992979
...@@ -506,6 +506,8 @@ int saa7164_cmd_send(struct saa7164_dev *dev, u8 id, enum tmComResCmd command, ...@@ -506,6 +506,8 @@ int saa7164_cmd_send(struct saa7164_dev *dev, u8 id, enum tmComResCmd command,
dprintk(DBGLVL_CMD, dprintk(DBGLVL_CMD,
"%s() UNKNOWN OR INVALID CONTROL\n", "%s() UNKNOWN OR INVALID CONTROL\n",
__func__); __func__);
ret = SAA_ERR_NOT_SUPPORTED;
break;
default: default:
dprintk(DBGLVL_CMD, "%s() UNKNOWN\n", __func__); dprintk(DBGLVL_CMD, "%s() UNKNOWN\n", __func__);
ret = SAA_ERR_NOT_SUPPORTED; ret = SAA_ERR_NOT_SUPPORTED;
......
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