mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
[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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
17992979f6
commit
b7c15d5d90
@ -506,6 +506,8 @@ int saa7164_cmd_send(struct saa7164_dev *dev, u8 id, enum tmComResCmd command,
|
||||
dprintk(DBGLVL_CMD,
|
||||
"%s() UNKNOWN OR INVALID CONTROL\n",
|
||||
__func__);
|
||||
ret = SAA_ERR_NOT_SUPPORTED;
|
||||
break;
|
||||
default:
|
||||
dprintk(DBGLVL_CMD, "%s() UNKNOWN\n", __func__);
|
||||
ret = SAA_ERR_NOT_SUPPORTED;
|
||||
|
Loading…
Reference in New Issue
Block a user