drivers/char/rio/rio_linux.c

	- Remove SCO compatibility trick in rio_fw_ioctl, i.e., riocontrol was returning non
          negative errors, now it is, so no need to turn it negative in rio_fw_ioctl. Thanks
          to Rogier Wolff for pointing this out.
parent 08b0fb25
...@@ -702,7 +702,7 @@ static int rio_fw_ioctl (struct inode *inode, struct file *filp, ...@@ -702,7 +702,7 @@ static int rio_fw_ioctl (struct inode *inode, struct file *filp,
func_enter(); func_enter();
/* The "dev" argument isn't used. */ /* The "dev" argument isn't used. */
rc = -riocontrol (p, 0, cmd, (void *)arg, capable(CAP_SYS_ADMIN)); rc = riocontrol (p, 0, cmd, (void *)arg, capable(CAP_SYS_ADMIN));
func_exit (); func_exit ();
return rc; return rc;
......
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