fix build warning 40/152040/1
authorYoungjae Shin <yj99.shin@samsung.com>
Mon, 25 Sep 2017 01:56:59 +0000 (10:56 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Mon, 25 Sep 2017 01:56:59 +0000 (10:56 +0900)
Change-Id: Ideef5a0e11e42984da3f60bde95cb110b70a78ee

src/usb_host.c

index 4c1c1045c334b131368e66bc8e59045a2b95459a..6681b0726537dcf2a0358c3a064ff4ede06eb3b9 100644 (file)
@@ -388,7 +388,6 @@ static int add_fd_watch(int fd, short events, void *user_data)
        GIOChannel *ch;
        usb_host_context_h ctx = user_data;
        GIOCondition condition = 0;
-       guint fd_handler;
 
        if (events & POLLIN)
                condition |= G_IO_IN;
@@ -401,7 +400,7 @@ static int add_fd_watch(int fd, short events, void *user_data)
                return USB_HOST_ERROR_OUT_OF_MEMORY;
        }
 
-       fd_handler = g_io_add_watch(ch, condition, usb_host_poll_cb, ctx);
+       g_io_add_watch(ch, condition, usb_host_poll_cb, ctx);
 
        pthread_mutex_lock(&ctx->channel_list_lock);
        _I("added fd %d to poll", fd);