patch-2.1.31 linux/drivers/sbus/char/sunmouse.c

Next file: linux/drivers/scsi/BusLogic.c
Previous file: linux/drivers/sbus/char/sunkbd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/sbus/char/sunmouse.c linux/drivers/sbus/char/sunmouse.c
@@ -337,13 +337,14 @@
 	return 0;
 }
 
-static void
+static int
 sun_mouse_close(struct inode *inode, struct file *file)
 {
 	sun_mouse_fasync (inode, file, 0);
 	if (--sunmouse.active)
-		return;
+		return 0;
 	sunmouse.ready = 0;
+	return 0;
 }
 
 static long

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov