devfs: Fix typo

This commit is contained in:
Sebastian Huber
2017-01-10 14:40:29 +01:00
parent 851722b3cd
commit 774f19f24c

View File

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