public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* question about drivers/rtc/rtc-cmos.c
@ 2013-12-25 19:32 Julia Lawall
  2013-12-27 17:29 ` Alessandro Zummo
  2013-12-27 22:22 ` Andrew Morton
  0 siblings, 2 replies; 5+ messages in thread
From: Julia Lawall @ 2013-12-25 19:32 UTC (permalink / raw)
  To: a.zummo, grant.likely, robh+dt, rtc-linux, linux-kernel

The function cmos_do_probe contains the code:

		if (is_hpet_enabled()) {
                        int err;

                        rtc_cmos_int_handler = hpet_rtc_interrupt;
			err = hpet_register_irq_handler(cmos_interrupt);
                        if (err != 0) {
                                dev_warn(dev, "hpet_register_irq_handler "
                                                " failed in rtc_init().");
                                goto cleanup1;
                        }
                }

Is it intentional that the error code returned by 
hpet_register_irq_handler is put ina local variable that will not be seen 
at label cleanup1?  The return value is retval, which is 0 at this point.

thanks,
julia

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-27 22:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-25 19:32 question about drivers/rtc/rtc-cmos.c Julia Lawall
2013-12-27 17:29 ` Alessandro Zummo
2013-12-27 20:26   ` Julia Lawall
2013-12-27 22:22 ` Andrew Morton
2013-12-27 22:32   ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox