commit | 84d3f48e75626193e4be2afc70674b7d8915de79 | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Thu Feb 16 21:57:16 2023 +0000 |
committer | Patrick Rohr <prohr@google.com> | Thu Feb 16 21:57:52 2023 +0000 |
tree | b29db88f2869773bbd1467310b65cba7f2070284 | |
parent | 4cf201102bd734c821e76aa71d807f9f127c4f54 [diff] |
ethernet: remove IpClient null check before restart aosp/2388903 added a null check for IpClient directly inside restart(), so this null check can be removed. Bug: 269387860 Test: TH Change-Id: I68943651967047674b4084c6397e58abf1bb2110
diff --git a/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java b/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java index 60485f1..bd138f9 100644 --- a/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java +++ b/service-t/src/com/android/server/ethernet/EthernetNetworkFactory.java
@@ -469,9 +469,7 @@ // TODO: Update this logic to only do a restart if required. Although a restart may // be required due to the capabilities or ipConfiguration values, not all // capabilities changes require a restart. - if (mIpClient != null) { - restart(); - } + restart(); } boolean isRestricted() {