patch-2.3.39 linux/drivers/block/xd.c
Next file: linux/drivers/block/z2ram.c
Previous file: linux/drivers/block/swim_iop.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Sat Jan 8 17:41:16 2000
- Orig file:
v2.3.38/linux/drivers/block/xd.c
- Orig date:
Fri Jan 7 19:13:21 2000
diff -u --recursive --new-file v2.3.38/linux/drivers/block/xd.c linux/drivers/block/xd.c
@@ -367,17 +367,12 @@
/* xd_release: release the device */
static int xd_release (struct inode *inode, struct file *file)
{
- int target;
-
- target= DEVICE_NR(inode->i_rdev);
+ int target = DEVICE_NR(inode->i_rdev);
if (target < xd_drives) {
- sync_dev(inode->i_rdev);
xd_access[target]--;
-
#ifdef MODULE
MOD_DEC_USE_COUNT;
#endif /* MODULE */
-
}
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)