OSDN Git Service

[media] saa7164: better handle error codes
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 18 May 2017 11:55:41 +0000 (08:55 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 19 May 2017 10:08:05 +0000 (07:08 -0300)
commitb7c15d5d90661f6eaa49f7a7a72d482fe1923d4a
tree3219960fcf4224dd157f7ecf0a78f6530dd9851f
parent17992979f6f3d3c531498e7f37bfdaf28f50848f
[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>
drivers/media/pci/saa7164/saa7164-cmd.c