diff options
author | dann frazier <dannf@hp.com> | 2009-03-31 15:24:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 08:59:25 -0700 |
commit | cd875d4767f821dabd0feb668623a42e9d48158a (patch) | |
tree | 8f39946ce5b14bf685e5e2446149f873cb3f981d /arch/parisc | |
parent | d09c091b6a8b2b73381e514d68c73580f2294b03 (diff) | |
download | kernel_samsung_smdk4412-cd875d4767f821dabd0feb668623a42e9d48158a.tar.gz kernel_samsung_smdk4412-cd875d4767f821dabd0feb668623a42e9d48158a.tar.bz2 kernel_samsung_smdk4412-cd875d4767f821dabd0feb668623a42e9d48158a.zip |
rtc-parisc: remove unnecessary ret variable
Signed-off-by: dann 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/parisc')
-rw-r--r-- | arch/parisc/kernel/time.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c index a479d08d5ed..e75cae6072c 100644 --- a/arch/parisc/kernel/time.c +++ b/arch/parisc/kernel/time.c @@ -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 */ |