1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #15578 from Hxinrong/devfs_registerBranch

add error checks of devfs_register()
This commit is contained in:
Alexandre Abadie 2020-12-09 18:53:26 +01:00 committed by GitHub
commit 38fdcd318d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;