Retry HID Polling when EINTR is returned

While I'm here
 - use __func__ consistently in btif_hh_poll_event_thread.
 - remove braces around a single line

BUG: 24647083
Change-Id: Iad9107714bcf567ff66a7d82fdd8a4832dce1ec5
Signed-off-by: Myles Watson <mylesgw@google.com>
diff --git a/btif/co/bta_hh_co.c b/btif/co/bta_hh_co.c
index bd6fd6f..70fab30 100644
--- a/btif/co/bta_hh_co.c
+++ b/btif/co/bta_hh_co.c
@@ -195,7 +195,7 @@
 static void *btif_hh_poll_event_thread(void *arg)
 {
     btif_hh_device_t *p_dev = arg;
-    APPL_TRACE_DEBUG("%s: Thread created fd = %d", __FUNCTION__, p_dev->fd);
+    APPL_TRACE_DEBUG("%s: Thread created fd = %d", __func__, p_dev->fd);
     struct pollfd pfds[1];
     int ret;
 
@@ -208,15 +208,14 @@
     while(p_dev->hh_keep_polling){
         ret = poll(pfds, 1, 50);
         if (ret < 0) {
-            APPL_TRACE_ERROR("%s: Cannot poll for fds: %s\n", __FUNCTION__, strerror(errno));
+            APPL_TRACE_ERROR("%s: Cannot poll for fds: %s\n", __func__, strerror(errno));
             break;
         }
         if (pfds[0].revents & POLLIN) {
-            APPL_TRACE_DEBUG("btif_hh_poll_event_thread: POLLIN");
+            APPL_TRACE_DEBUG("%s: POLLIN", __func__);
             ret = uhid_event(p_dev);
-            if (ret){
+            if (ret != -EINTR)
                 break;
-            }
         }
     }