mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/mulle/board.c:add error checks of devfs_register()
This commit is contained in:
parent
3f9e8c8ffb
commit
385dfe46a5
@ -175,9 +175,7 @@ static int mulle_nvram_init(void)
|
||||
}
|
||||
|
||||
/* Register DevFS node */
|
||||
devfs_register(&mulle_nvram_devfs);
|
||||
|
||||
return 0;
|
||||
return devfs_register(&mulle_nvram_devfs);
|
||||
}
|
||||
|
||||
static void increase_boot_count(void)
|
||||
@ -200,7 +198,7 @@ int mulle_nor_init(void)
|
||||
|
||||
if (res >= 0) {
|
||||
/* Register DevFS node */
|
||||
devfs_register(&mulle_nor_devfs);
|
||||
res = devfs_register(&mulle_nor_devfs);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user