Skip to content

Commit

Permalink
rtc-parisc: remove unnecessary ret variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dann frazier authored and Linus Torvalds committed Apr 1, 2009
1 parent d09c091 commit cd875d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/parisc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cd875d4

Please sign in to comment.