Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5204369ybb; Tue, 24 Mar 2020 12:51:26 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsElpv2Isw5SQQrQm0XlggljVjhCqVpvp0CM41MMHZ1tVoSw8fyM5mOFyQJdrza0k8OqHCS X-Received: by 2002:aca:edcf:: with SMTP id l198mr4588394oih.97.1585079485958; Tue, 24 Mar 2020 12:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585079485; cv=none; d=google.com; s=arc-20160816; b=D5iVsg78vXQ3Tc6jKdC/xHwJ08qPIs61CMvN8Z1/1SehjmnBD3T0Etvd/O/g9SVujH M61gKmJlZO3IRATaG1vi2GG2qNq3V3lMxEoyXObyn8lRvq5WBDud03A3UsY7ylUjozc/ NLBT4aHsR6oVPcwKtUQhcB2M0YYBGDvuQlpzzBcHRtZvJERkfggDMkKXo29EgYrLiJJa /ugcLFbJYbjldO4gxXw/gEgMLwGW6xds1p2O/uwb3pdPRBcvk8IvpUCKGKW5nG/CFRyu 2oIIxlnAed9sVzSWJgHiw9rvYW7LSrsLxO05LhTvW0KkTHXyOmXwHYUg+LMz1tc3BMCf SMBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=bCkULCzxw3/sGwWgG8WDnEOuqAHjuyKU9vXLvFr2QEg=; b=CZhYeRl+cf5WFnfjCYdY1pFWanBeGzk6lVh1oBS5ucBsjGIOFkO0M2Z6uBe2Pamqio ZJky/hal8zMYc+QclMsC5X9oclbx+xgYG9Fi6vP4DPtQ+B7UkQXFpwnUMdX9hYY+aySV sGEq0/PkKJdJKCzo2FeiWSIhnS00aOzPX9lyh3RyGAhnGzEbB4pOSK3fh0E0bHUpmr3D DU7xXrmiOlM9ObnXyfkuB4f+7z/H3rDnRC2+c6iGH0Cppl/oc1wunc+UPwgkhGnIUioi WN/oNlJiWPRPW3Id/w+8jDT5EhJI9rOW8UMxA1S1XgWN6NeIZkWx0xi0KFR9iSlZRJzF +94g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nF7aBq2M; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l15si9860434otb.8.2020.03.24.12.51.12; Tue, 24 Mar 2020 12:51:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nF7aBq2M; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727270AbgCXTtz (ORCPT + 99 others); Tue, 24 Mar 2020 15:49:55 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:40923 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726764AbgCXTty (ORCPT ); Tue, 24 Mar 2020 15:49:54 -0400 Received: by mail-ot1-f65.google.com with SMTP id e19so18295974otj.7 for ; Tue, 24 Mar 2020 12:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=bCkULCzxw3/sGwWgG8WDnEOuqAHjuyKU9vXLvFr2QEg=; b=nF7aBq2MQpEjyuYdBbdhcKMcsqRVohyHQLFw6YQoUG7awADuW6Wtq4uAYib6hcNmq7 Ro8yuJbbj1BqEI38hkGeJuznlGNTL3RIwQxh8S7wYHQJgNMt5S4oJPuZy412bkJedMyL DSU1VkPc0bI0AssIFmjFI21CzUaN3aOoHf9CE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=bCkULCzxw3/sGwWgG8WDnEOuqAHjuyKU9vXLvFr2QEg=; b=lB85e4Df2WtfT99QYBDCfXzVPKjLGV0XkLXvFYluwhcCBbaVzajJord8eKl5/ef/ni 3GCRRCQPrhUkzhLSzSKkS1E67kfcNshoEVMH28kimSyRJglgOYfL86gAB2iPTRVQgwU3 uLB+lrKogI+GgJ7xjp96tGGpER51kBQqyqSvnvONxZgZMn8/l8DIlsd5gzjpBO0rQdHL 5ih/8uqtfIj24THHxVBPN2PFZD96pgOvrz4YpoWe9ckBavTK74cTYSG1W5Rr8fi+gVtv YGwNurOEjuhJUROeuAGNbaVazpcm36R4OlNztiOlhk0GwTUFmpIY+bH0jJf3aIliTQ1m ZxJg== X-Gm-Message-State: ANhLgQ2bli+8CC4tac9faatG2IGMzyLoEZCFdJc3a31nVJNuCrEgBayZ CP9ESw05o0fyUYe5wwFowZ+Anry845QG9BunRxhCiJtYPjI= X-Received: by 2002:a05:6830:1e25:: with SMTP id t5mr22029183otr.70.1585079393625; Tue, 24 Mar 2020 12:49:53 -0700 (PDT) MIME-Version: 1.0 From: Sonny Sasaka Date: Tue, 24 Mar 2020 12:49:42 -0700 Message-ID: Subject: [PATCH] autopair: Fix compiler warning To: BlueZ Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org With clang, comparing an array with NULL generates a warning because the value is always non-NULL. With maintainer mode enabled, this becomes a compilation error. --- plugins/autopair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autopair.c b/plugins/autopair.c index 043bd9b9d..3089430a8 100644 --- a/plugins/autopair.c +++ b/plugins/autopair.c @@ -75,7 +75,7 @@ static ssize_t autopair_pincb(struct btd_adapter *adapter, btd_device_get_product (device)); /* The iCade shouldn't use random PINs like normal keyboards */ - if (name != NULL && strstr(name, "iCade") != NULL) + if (strstr(name, "iCade") != NULL) return 0; /* This is a class-based pincode guesser. Ignore devices with an -- 2.17.1