diff options
Diffstat (limited to 'src/device-node.c')
-rw-r--r-- | src/device-node.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/device-node.c b/src/device-node.c index 07ba917..3000a76 100644 --- a/src/device-node.c +++ b/src/device-node.c @@ -68,11 +68,6 @@ API int device_get_property(enum device_type devtype, int property, int *value) } dev = container_of(type, struct device, type); - if (dev == NULL) { - _E("device cannot find"); - errno = EPERM; - return -1; - } if (dev->get_prop == NULL) { _E("devtype doesn't have getter function"); @@ -109,11 +104,6 @@ API int device_set_property(enum device_type devtype, int property, int value) } dev = container_of(type, struct device, type); - if (dev == NULL) { - _E("device cannot find"); - errno = EPERM; - return -1; - } if (dev->set_prop == NULL) { _E("devtype doesn't have setter function"); |