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>
This commit is contained in:
parent
d09c091b6a
commit
cd875d4767
1 changed files with 1 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue