mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:59:07 +08:00
devfs: Fix typo
This commit is contained in:
@@ -238,7 +238,7 @@ devfs_alloc(int flags)
|
||||
struct cdev *cdev;
|
||||
|
||||
cdev = malloc(sizeof *cdev, M_TEMP, M_ZERO);
|
||||
if (cdev != NULL)
|
||||
if (cdev == NULL)
|
||||
return (NULL);
|
||||
|
||||
memcpy(cdev->si_path, rtems_cdev_directory, sizeof(cdev->si_path));
|
||||
|
Reference in New Issue
Block a user