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