From 51c7bd47abeb3f24ad53342a9609a8f263d04ded Mon Sep 17 00:00:00 2001 From: Greg Kaiser Date: Wed, 26 Jan 2022 07:13:18 -0800 Subject: [PATCH] Wifi: Remove premature 'return' We want to fill in more fields in our conversion method, so we let the logic proceed to all of them. Test: TreeHugger Bug: 203220137 Change-Id: Ia7a9c978ec778eebd17b9ce74f43cc320e92b971 --- wifi/1.6/default/hidl_struct_util.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/wifi/1.6/default/hidl_struct_util.cpp b/wifi/1.6/default/hidl_struct_util.cpp index 76341ffd7e..71f98b9ef5 100644 --- a/wifi/1.6/default/hidl_struct_util.cpp +++ b/wifi/1.6/default/hidl_struct_util.cpp @@ -1420,8 +1420,6 @@ bool convertHidlNanConfigRequest_1_6ToLegacy(const V1_4::NanConfigRequest& hidl_ legacy_request->config_enable_ranging = 1; legacy_request->enable_ranging = hidl_request2.V1_5.V1_2.enableRanging; - return true; - legacy_request->config_enable_instant_mode = 1; legacy_request->enable_instant_mode = hidl_request2.V1_5.enableInstantCommunicationMode; legacy_request->config_instant_mode_channel = 1;