Commit cd875d47 authored by dann frazier's avatar dann frazier Committed by Linus Torvalds

rtc-parisc: remove unnecessary ret variable

Signed-off-by: default avatardann frazier <dannf@hp.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Grant Grundler <grundler@parisc-linux.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d09c091b
......@@ -223,10 +223,7 @@ static struct platform_device rtc_parisc_dev = {
static int __init rtc_init(void)
{
int ret;
ret = platform_device_register(&rtc_parisc_dev);
if (ret < 0)
if (platform_device_register(&rtc_parisc_dev) < 0)
printk(KERN_ERR "unable to register rtc device...\n");
/* not necessarily an error */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment