فهرست منبع

remove ppp device init call

Signed-off-by: xiaofan <xfan1024@live.com>
xiaofan 6 سال پیش
والد
کامیت
dbfad75675
1فایلهای تغییر یافته به همراه0 افزوده شده و 11 حذف شده
  1. 0 11
      src/ppp_device.c

+ 0 - 11
src/ppp_device.c

@@ -560,17 +560,6 @@ int ppp_device_register(struct ppp_device *ppp_device, const char *dev_name, con
         LOG_I("ppp_device has registered rt_device frame successful.");
         LOG_I("ppp_device has registered rt_device frame successful.");
     }
     }
 
 
-    /* when ppp device has register rt_device frame, start up it */
-    do
-    {
-        if (device->init && device->init((rt_device_t)ppp_device) != RT_EOK)
-        {
-            LOG_E("ppp device init failed.try it in %ds", PPP_RECONNECT_TIME / 100);
-            rt_thread_mdelay(PPP_RECONNECT_TIME);
-            result = -RT_ERROR;
-        }
-    } while (result != RT_EOK);
-
     return result;
     return result;
 }
 }