device-node : remove unreachable code 92/102692/1
authorKichan Kwon <k_c.kwon@samsung.com>
Tue, 6 Dec 2016 10:12:11 +0000 (19:12 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 6 Dec 2016 10:13:19 +0000 (19:13 +0900)
Change-Id: I590c995f69ab84e54fb7124a9e577673a97c2693
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/device-node.c

index 07ba917..3000a76 100644 (file)
@@ -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");