chiark / gitweb /
[PATCH] switch device type to enum
[elogind.git] / udev_remove.c
index 3a3db737c186bd7763f92bd8399cdfc8305e0b22..0ba6962cad660f481714d91ebb2c235a79e0b363 100644 (file)
@@ -147,7 +147,7 @@ int udev_remove_device(struct udevice *udev)
        const char *temp;
        int retval;
 
-       if (udev->type != 'b' && udev->type != 'c')
+       if (udev->type != BLOCK && udev->type != CLASS)
                return 0;
 
        retval = udev_db_get_device(udev);