From patchwork Tue Apr 5 15:43:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Pelz X-Patchwork-Id: 558346 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E99E5C433EF for ; Wed, 6 Apr 2022 00:44:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390547AbiDFAmK (ORCPT ); Tue, 5 Apr 2022 20:42:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457466AbiDEQDQ (ORCPT ); Tue, 5 Apr 2022 12:03:16 -0400 X-Greylist: delayed 436 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 08:50:35 PDT Received: from mail.pelzflorian.de (pelzflorian.de [5.45.111.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFDE84F9CD for ; Tue, 5 Apr 2022 08:50:35 -0700 (PDT) Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id EBD8C3606A0 for ; Tue, 5 Apr 2022 17:43:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1649173398; bh=ymOcM2/1rhgKmG/D7aCJ/zReR4MoKWojyWqHC+IMUkM=; h=Date:From:To:Subject; b=QrW/0hln9x07EyL50Un/vFtuPxiRM4Z9ijvn2/0OJkSkhST0XP2055isnP4S2PYgR SDuAyQ424oZDl0L1ZC7azVlTBOFwFlIKssD0UlRFYNW1MkYIdG2eh6cDB+XWQL7e5Y D+y8IxfysnYrQjWMNfCT4z8oh/BghRg5E0hNjy3Q= Date: Tue, 5 Apr 2022 17:43:05 +0200 From: Florian Pelz To: linux-bluetooth@vger.kernel.org Subject: [PATCH] main: Remove unused main.conf option NameResolving Message-ID: <20220405154226.nejyr5twrhsqrzim@pelzflorian.localdomain> MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Commit 826023de56896e83f35ae69a73d6a120a2f5b11e removed the last use of name_resolv. --- src/btd.h | 1 - src/main.c | 8 -------- src/main.conf | 4 ---- 3 files changed, 13 deletions(-) base-commit: 234d60423c3b8186a27b31028d4c0acb847eedb1 diff --git a/src/btd.h b/src/btd.h index d13646889..c11076cce 100644 --- a/src/btd.h +++ b/src/btd.h @@ -109,7 +109,6 @@ struct btd_opts { struct btd_defaults defaults; gboolean reverse_discovery; - gboolean name_resolv; gboolean debug_keys; gboolean fast_conn; gboolean refresh_discovery; diff --git a/src/main.c b/src/main.c index a448320c1..52fa4829b 100644 --- a/src/main.c +++ b/src/main.c @@ -766,13 +766,6 @@ static void parse_config(GKeyFile *config) } else btd_opts.reverse_discovery = boolean; - boolean = g_key_file_get_boolean(config, "General", - "NameResolving", &err); - if (err) - g_clear_error(&err); - else - btd_opts.name_resolv = boolean; - boolean = g_key_file_get_boolean(config, "General", "DebugKeys", &err); if (err) @@ -954,7 +947,6 @@ static void init_defaults(void) btd_opts.discovto = DEFAULT_DISCOVERABLE_TIMEOUT; btd_opts.tmpto = DEFAULT_TEMPORARY_TIMEOUT; btd_opts.reverse_discovery = TRUE; - btd_opts.name_resolv = TRUE; btd_opts.debug_keys = FALSE; btd_opts.refresh_discovery = TRUE; btd_opts.name_request_retry_delay = DEFAULT_NAME_REQUEST_RETRY_DELAY; diff --git a/src/main.conf b/src/main.conf index 401796235..337dc77e5 100644 --- a/src/main.conf +++ b/src/main.conf @@ -37,10 +37,6 @@ # Defaults to 'true'. #ReverseServiceDiscovery = true -# Enable name resolving after inquiry. Set it to 'false' if you don't need -# remote devices name and want shorter discovery cycle. Defaults to 'true'. -#NameResolving = true - # Enable runtime persistency of debug link keys. Default is false which # makes debug link keys valid only for the duration of the connection # that they were created for.