[REFACTOR] Remove redutant check
authorDmitry Bogatov <d.bogatov@samsung.com>
Wed, 16 Oct 2013 08:38:14 +0000 (12:38 +0400)
committerDmitry Bogatov <d.bogatov@samsung.com>
Wed, 16 Oct 2013 08:44:49 +0000 (12:44 +0400)
Change-Id: Id39b79c62335ebf3797f9a1abfc3ebacca327cdd

daemon/da_protocol.c

index ab6a400..4432554 100644 (file)
@@ -949,12 +949,6 @@ int host_message_handler(struct msg_t *msg)
                        error_code = ERR_CANNOT_START_PROFILING;
                        goto send_ack;
                }
-               //response to control socket
-               if (msg_reply == NULL) {
-                       LOGE("message for kernel is null\n");
-                       error_code = ERR_CANNOT_START_PROFILING;
-                       goto send_ack;
-               }
 
                if (ioctl_send_msg(msg_reply) != 0) {
                        LOGE("cannot send message to device\n");