Remove failure retry from getService.

We don't actually need the retries. Once we have
registerForServiceNotifications from b/30804608, we would remove these
retries anyway.

Test: full build, nfc works
Bug: 32699105
Change-Id: I9acdbee7ed12a26b008644150e2b0ad99181950d
diff --git a/include/hidl/HidlSupport.h b/include/hidl/HidlSupport.h
index b78d0a9..cdeb2c8 100644
--- a/include/hidl/HidlSupport.h
+++ b/include/hidl/HidlSupport.h
@@ -645,26 +645,21 @@
         using ::android::hardware::IBinder;                                              \
         using ::android::hidl::manager::V1_0::IServiceManager;                           \
         sp<I##INTERFACE> iface;                                                          \
-        const struct timespec DELAY {1,0};                                               \
-        unsigned retries = 3;                                                            \
         const sp<IServiceManager> sm = defaultServiceManager();                          \
         if (sm != nullptr && !getStub) {                                                 \
-            do {                                                                         \
-                sp<IBinder> binderIface;                                                 \
-                IServiceManager::Version version {                                       \
-                    .major = I##INTERFACE::version.get_major(),                          \
-                    .minor = I##INTERFACE::version.get_minor(),                          \
-                };                                                                       \
-                sm->get(serviceName.c_str(), version,                                    \
-                    [&binderIface](sp<IBinder> iface) {                                  \
-                        binderIface = iface;                                             \
-                    });                                                                  \
-                iface = IHw##INTERFACE::asInterface(binderIface);                        \
-                if (iface != nullptr) {                                                  \
-                    return iface;                                                        \
-                }                                                                        \
-                TEMP_FAILURE_RETRY(nanosleep(&DELAY, nullptr));                          \
-            } while (retries--);                                                         \
+            sp<IBinder> binderIface;                                                     \
+            IServiceManager::Version version {                                           \
+                .major = I##INTERFACE::version.get_major(),                              \
+                .minor = I##INTERFACE::version.get_minor(),                              \
+            };                                                                           \
+            sm->get(serviceName.c_str(), version,                                        \
+                [&binderIface](sp<IBinder> iface) {                                      \
+                    binderIface = iface;                                                 \
+                });                                                                      \
+            iface = IHw##INTERFACE::asInterface(binderIface);                            \
+            if (iface != nullptr) {                                                      \
+                return iface;                                                            \
+            }                                                                            \
         }                                                                                \
         int dlMode = RTLD_LAZY;                                                          \
         void *handle = dlopen(HAL_LIBRARY_PATH_ODM LIB, dlMode);                         \