Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2144109pja; Thu, 26 Mar 2020 10:21:44 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu/jZTRIIyrl35lrl3g3l43YFFOT81lIAnDysGI+y5fHT3Jn5cl/AOF2+heMU4m3u0T6ZQ8 X-Received: by 2002:aca:55ce:: with SMTP id j197mr921960oib.84.1585243304554; Thu, 26 Mar 2020 10:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585243304; cv=none; d=google.com; s=arc-20160816; b=RUROH5FpDsy5P/1hFm2U5fxz2V6bsO7eNKuea2TDTl79GVDczf3xfr/WWfJEBc86k7 Jm45iiQrTlY+D/mzTgN67PpoyRmql3Sh1bP2g/4yWSmqm6O1VTofzES+XEckl9tTUCtu 9t5tbdyF8/5Yo5bkaPnQttrxK/TxPrMv5eLNhbN6z/zb2xKwSUwnnZLQkHpCouUzPdjf EMFZvyhvZ/qf14Ja11ArFbZxgENEa1VVNHXmdBM1fp78Q94oTYCKS1O2c5njJNjTdeIS /K0g6QqlqH7Xz4/it1Prkb4x/aFPOmvt4P6l1vzE8koMPLYzLe7rLLmAS+km9DbU+wYQ BwmQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Dp8AfGEc4pG6IDCBSgLmlAKmq788PjytsmDxUXbv+RQ=; b=N3ErEctkEFvFxAbUVsGwjCWpH3JuthFoxK2cjHX2Wx4ISUqfqHmodq4eCJiiszLZ89 evV22dy7BNrbHdzegGP7Nplh13dSZTSkPewr4DT+HlLy3YFF8YqW1cnRqs5wHhqKAmT2 01TcVVu3HgQFOEwwmd40POqfvsxWAiFB4zu/jRntw8s/PTbT9+53tNGo+xQSj7a6Y61f XU9i66MA+Y9IRNyKNS7ThNlAj4eX+EXeZGEo7KaPNICloe9le72junQ0Ko3Q0S3MN+p3 MCbLUbJ6cCoR10WTzE0g13t1Ep9Scdr9cgL+aPYwK917fAFX2RkeJfF55JYv1NPiCWxb Hchg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=knAjWFig; 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 x8si1346069otb.140.2020.03.26.10.21.22; Thu, 26 Mar 2020 10:21:44 -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=knAjWFig; 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 S1726267AbgCZRVD (ORCPT + 99 others); Thu, 26 Mar 2020 13:21:03 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38294 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbgCZRVD (ORCPT ); Thu, 26 Mar 2020 13:21:03 -0400 Received: by mail-ot1-f68.google.com with SMTP id t28so6683756ott.5 for ; Thu, 26 Mar 2020 10:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Dp8AfGEc4pG6IDCBSgLmlAKmq788PjytsmDxUXbv+RQ=; b=knAjWFigiD1eKn0q0cRkCcuMdCXdwW+HGRf2n/xFfbWSII2nKsQGLTzQ4K1Kp/NmAW TFAq8taWOyMrELrd110wrnV2b3KlRcC645r962vPWHvdT91+laWQqvwriSHtLg/G/QFU zkY0QeqWmnpgWPhbuQFBTSdJjBi8mLWPdCu5Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Dp8AfGEc4pG6IDCBSgLmlAKmq788PjytsmDxUXbv+RQ=; b=uAq6hX2JG6a1XU8fCnZZPGtIpMqDYNSiZ9tisKItKJrfICLewSpTkGmMaItm5GAS3L 2hzHUM0E4G7aCGxnBOASBhsQyLQCJKqaGAbDMQx5GASq4eSrlfig2d9EeRTp0ppzHFDQ 4OYNWB1yZJG3M+sKudoyLPWYxMXGMjvlGEiadJJqTI1f/Q/TBkQJv5dfqYdbXnNIX0Dx CsQFVQ+d2PqLwKRU7capnOovzxZSEXhHpvOz+W39Zqs8UYfN6mmDDKBcyz2IBfKTcsgO fUacTibTJdH0l7nB94ExHUlwDuNHGiVzFWAd/dKSAQTyfSpFqpx1DWNQ+QPJ2ltlTgNx S3Lw== X-Gm-Message-State: ANhLgQ124p8CmpZbrU2d4DCaFt4oPVtp0lWDIE+ARnZwKu1T07Nb3pXi Rt2IAfNEPj8+NnRRg7l7GJrd6ZyQhAv1CyL/frLNKSvC X-Received: by 2002:a9d:1b6d:: with SMTP id l100mr3538363otl.70.1585243260969; Thu, 26 Mar 2020 10:21:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sonny Sasaka Date: Thu, 26 Mar 2020 10:20:48 -0700 Message-ID: Subject: Re: [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 Hi BlueZ maintainers, Could you take a look at this fix? Thank you! On Tue, Mar 24, 2020 at 12:49 PM Sonny Sasaka wrote: > > 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