patch-2.1.44 linux/drivers/char/rtc.c

Next file: linux/drivers/char/serial.c
Previous file: linux/drivers/char/random.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/drivers/char/rtc.c linux/drivers/char/rtc.c
@@ -152,7 +152,7 @@
 		     unsigned long count)
 {
 	struct wait_queue wait = { current, NULL };
-	int retval;
+	int retval = 0;
 	
 	if (count < sizeof(unsigned long))
 		return -EINVAL;
@@ -180,7 +180,7 @@
 		data = rtc_irq_data;
 		rtc_irq_data = 0;
 		restore_flags(flags);
-		retval = put_user(data, (unsigned long *)buf)) ?: sizeof(unsigned long);
+		retval = put_user(data, (unsigned long *)buf) ?: sizeof(unsigned long);
 	}
 
 	current->state = TASK_RUNNING;

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