[media] staging: lirc_serial: Fix bogus error codes
authorBen Hutchings <ben@decadent.org.uk>
Wed, 16 Nov 2011 04:53:35 +0000 (01:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 20:18:05 +0000 (18:18 -0200)
commit9b98d60679711753e548be15c6bef5239db6ed64
tree3257eeabc23c4f39deff7c8ecf09a53fe465ec9d
parent1ff1d88e862948ae5bfe490248c023ff8ac2855d
[media] staging: lirc_serial: Fix bogus error codes

Device not found?  ENODEV, not EINVAL.
Write to read-only device?  EPERM, not EBADF.
Invalid argument?  EINVAL, not ENOSYS.
Unsupported ioctl?  ENOIOCTLCMD, not ENOSYS.
Another function returned an error code?  Use that, don't replace it.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/lirc/lirc_serial.c