patch-2.1.31 linux/drivers/cdrom/sbpcd.c
Next file: linux/drivers/cdrom/sjcd.c
Previous file: linux/drivers/cdrom/optcd.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Wed Apr 2 17:43:20 1997
- Orig file:
v2.1.30/linux/drivers/cdrom/sbpcd.c
- Orig date:
Sun Jan 26 02:07:11 1997
diff -u --recursive --new-file v2.1.30/linux/drivers/cdrom/sbpcd.c linux/drivers/cdrom/sbpcd.c
@@ -5200,7 +5200,7 @@
/*
* On close, we flush all sbp blocks from the buffer cache.
*/
-static void sbpcd_release(struct inode * ip, struct file * file)
+static int sbpcd_release(struct inode * ip, struct file * file)
{
int i;
@@ -5208,7 +5208,7 @@
if ((i<0) || (i>=NR_SBPCD) || (D_S[i].drv_id==-1))
{
msg(DBG_INF, "release: bad device: %04X\n", ip->i_rdev);
- return;
+ return 0;
}
down(&ioctl_read_sem);
switch_drive(i);
@@ -5236,6 +5236,7 @@
}
}
up(&ioctl_read_sem);
+ return 0;
}
/*==========================================================================*/
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov