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
- Lines: 18
- Date:
Mon Jul 7 08:24:28 1997
- Orig file:
v2.1.43/linux/drivers/char/rtc.c
- Orig date:
Mon Jun 16 16:35:55 1997
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