提交 cd875d47 编写于 作者: D dann frazier 提交者: Linus Torvalds

rtc-parisc: remove unnecessary ret variable

Signed-off-by: Ndann 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: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册