Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2372850pja; Thu, 26 Mar 2020 14:09:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv4NB9A+zpTokYF40h6jkoqUtk3bu6vyJWFz27/AlrbKtxvnmL86LsYjBeQTipCAWcIW3AD X-Received: by 2002:a4a:8604:: with SMTP id v4mr6722635ooh.82.1585256963409; Thu, 26 Mar 2020 14:09:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585256963; cv=none; d=google.com; s=arc-20160816; b=Y+dz7CRsW/lwlW9A79iGpaG/OfQ4QkjUmS0oNWEJsWO4z759u4qd8Y61nW9SN/3Us/ U3NGSaBa4pFE6CpDDtF/rBJmDuAwwit5ZoetIH/aKEPEtUShP4QBDzCTgBodMxoUQ+xw 8jRu+b+4sEqa5SuC3ZJQWp4PEh3aSpJ9yhSeCz9XNH6uSkp3hZCb3kSsTsIKXx+j7a35 08iZ1SrmpeGQDsrsymPFJCxKwN5VH1JpZ2lL8x7igH/G2o5mhPts4c/89dcaTnmzvCKT SQijhi5xT+lmqfpbyyW8xGS4jc0ch1sxbIBDFyGo+RMPWOtfEBhrhxd9ctDNkxhMSuUB EjBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WsQRerX0cT9L8utjKt5AM3/uTMou2QKNVYAs290O/C0=; b=EbHHrtar9FWS2e/crmo9fprcvb6NPMG1+3x8TAuOG2ISWQhPt9nKvR/rrytW+DIufM S0DS8Ie0S1U0QXrocbmmLI2x4oe1P6g9XALdVfRLmOZOZfbV4PudSCRoFyRp8BiyKgnX j3eyLQUez2EfyOvPIhpHZBGhX2qiq6TLpN92zaE7FzMyBWDzATZ9dA79XaKTuC+o4AGA ol8+uG8/KZATQMJWEkvaQ/wZk86BiypwJiV+Q7UKP/GTkRRanThk1k/7UbL9sFVSnxji Z1CHKYeb0OYif1uDON1fvcVq4U0EsmdNaMMoGnRgnpZBD+5YTo9h/FIBZkGnivGez/bg O+8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QOA0Gxbt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c125si1508641ooc.50.2020.03.26.14.09.11; Thu, 26 Mar 2020 14:09:23 -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=@gmail.com header.s=20161025 header.b=QOA0Gxbt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726359AbgCZVJH (ORCPT + 99 others); Thu, 26 Mar 2020 17:09:07 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:37704 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbgCZVJH (ORCPT ); Thu, 26 Mar 2020 17:09:07 -0400 Received: by mail-ot1-f68.google.com with SMTP id g23so7549056otq.4 for ; Thu, 26 Mar 2020 14:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WsQRerX0cT9L8utjKt5AM3/uTMou2QKNVYAs290O/C0=; b=QOA0GxbtgM3K9NgwylSqhtjivsc3LOvUHO91ocbAL1/iWuhXs0Gun7GY/En7PS2tvi PhUZzZ8zUShegvYkK70ymuK+TR2kLk7Doq2G9Ee6/zPgHG4hj2Hv/TfaDCZ9WLiIqf7K KOvDT6S00hoZMxxLZCp4VYWNXca/wud2woD+GAQBgZip4uDEon5xJ5umwVw2Lr7YJ+p8 gVfN0opqkv2fQuMFST0wDM5wja11xxiu/rkYgiouOYJ/EuBAiwAkkzpf5MXZpba6VdGU CxzLDwKJnZ3WMzufssBkabbE7opTTmJsl3vyApE8W3HzWAFNEqpc4BLwJAv5OdIXH+zT v8qQ== 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:cc; bh=WsQRerX0cT9L8utjKt5AM3/uTMou2QKNVYAs290O/C0=; b=FvaAqm6ACK7LSounTvuOofoQSpkn2C1BXBT1RNl2v6oTwTbzPKh1RwdK/OgEA1SJMz y83WgivpbSyg7KtJS1svLm2bzRosWfYpGD7I20eGS6shxOL0FPgWGKYlC7yxmt0dsSX8 mmFJI9zepvhHEXAQ7FWWN2wh3fVUo7uho7x5IJdG+QN78hpqtKhUJ8z/H40ghp0pL2vl 6zXDnEbrRwenFIvCxluIzOaMXKuWIWzsCTGw5FSGXuUpYgVmpDU5JKCCVLbeXQddDTed PhVXLw8J9YTYRJPV7qr14CUA0fx6lhJY+4F5Ji5HnaxGN/j/Vw2ZYInf1WGFfzgKAZCz 7k9w== X-Gm-Message-State: ANhLgQ255mEpblQe+/u8xBcVlMq2GylKbnrt6PRUdx112kmhYexrQa9X BxwvXn/RBThm1FQ1ODQRu/B2raxUomO+/1wXlsT2wg== X-Received: by 2002:a9d:720a:: with SMTP id u10mr7110915otj.177.1585256945337; Thu, 26 Mar 2020 14:09:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Thu, 26 Mar 2020 14:08:53 -0700 Message-ID: Subject: Re: [PATCH] autopair: Fix compiler warning To: Sonny Sasaka Cc: 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 Sonny, On Thu, Mar 26, 2020 at 10:23 AM Sonny Sasaka wrote: > > 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 Applied, thanks. -- Luiz Augusto von Dentz