Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2376550pja; Thu, 26 Mar 2020 14:13:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsz33Xef8TXQ2KVpYzjXRc+qRqO/+Sk9Cxw8CdCN92L7m3P/v6WsSqEuyPoAAt6CPdpa6Mf X-Received: by 2002:a4a:370f:: with SMTP id r15mr6853849oor.100.1585257214661; Thu, 26 Mar 2020 14:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585257214; cv=none; d=google.com; s=arc-20160816; b=WpESttI/2E3FYcJmGlw+csFue/QSuqMbSehwaishNKyYqNk1XOjbVJt7xC9jzAFtZj tNfqlwyR65HbOvsXQemp1ttrFjvWw7vg/GEVUDVYYkgW1UOes98bW0mYWRv5CIPYJodr jScj5vMDsdGum3e8INyJoS0h78gCqkJyiWzve2pwLq81oIXDs88tASdqSgRhLV7/e48c ypYAy9p+SMZMKkjEGizG0CMwkCCw0fnVV1//VXwZ5CRDCVQpMD1dj41tQ6xPz1zq0V2s 0Yja5TdrWmCEbYmiCeLL56M4fKfu183SYeQj+sCbs5LYtKgCo/BXiulKYWsqRx/eP94s Wxng== 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=si3MmAzVMydwvGpXwEZ58XeQRNXfZJ2KstlfE1u7GIc=; b=nofGgtv3TWKj8ps+aGlgwtZ+lNBLzN26+Yj0rklsFvNGx4t+0ktK5896YvTE+wJOHh 0COgjknAUvp+QIwn1/yLMnvT0EeNaw+9pcBureeRgUOOYhCAYIgx/8S/oNlGDKEGVTuk lE97/RF3XMIYxzg4j+ht3L57Oug/0ABO/j/bcbew+snhJYsyWuyy5k28Sb15azXd1gaR 8/cxU+QUpFvTpB1r7jFYL7S4LQBWQJddQJBnEtWo6kgdbSQhEMLX0SS+UAflCglC5vOx G7j0cnxfGg6oc3UgbxZav0Q5jVyFT0MvJKq2iJRP+O9uPafkjz8hoGz+LOaac3vwMi2U ZAcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E2yaUpOh; 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 m16si1458852ooq.88.2020.03.26.14.13.21; Thu, 26 Mar 2020 14:13:34 -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=E2yaUpOh; 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 S1727726AbgCZVMt (ORCPT + 99 others); Thu, 26 Mar 2020 17:12:49 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:45418 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbgCZVMr (ORCPT ); Thu, 26 Mar 2020 17:12:47 -0400 Received: by mail-ot1-f67.google.com with SMTP id c9so7511435otl.12 for ; Thu, 26 Mar 2020 14:12:47 -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 :cc; bh=si3MmAzVMydwvGpXwEZ58XeQRNXfZJ2KstlfE1u7GIc=; b=E2yaUpOhMP1LTNXshtmCz+ULsEPR/vKvrraImVIa3Y90gEOahM6NcfYIyVAifpqs0T 6K0Neeu/k8H3VwIO1uemtinBZeneQZKiO6FV29unAU+O3i+zkETcvMfQCpG61Jw9Iix7 3T9Jnh1v0yr1y3MqX/crerGKoJmX7+FvV/7GQ= 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=si3MmAzVMydwvGpXwEZ58XeQRNXfZJ2KstlfE1u7GIc=; b=V+qMbSjbuT8/yx3mRZZ/e9uCG3dAgRibgUZKPwW51CPyas4ih6vpYaDoUehK3DDUUd Skh1IErBPimDAvzbK7QdUh79Q6pvx01XDdJxfy2+oUiccYkE8US+XA94kbZxN2aDAaqD WGayUkRDKGz48BwEkffu3C1NTtunviGeEko5jzk0Ju5iwGjTQzcvBB7qF/NEslRDcOcx Au9BpqKWN+gy8Mb/Z0ztq79Ft1t+L3pQppaT0BvRhnXG2AM7bJ5FDuIPNWMetcZqTAOE IY5oMNko75PRwzblyxyQkRkYZ0E0pXOqN1x1ZlsPtfouIjOg9OgQTvXRs0GL6xI6ZaSd j/Wg== X-Gm-Message-State: ANhLgQ1Ry3+bCT8Cx5p7PyZYBzJZ85aka7Go9sOOVUa6fm7WxQNh3ovI LVFKMoOw1WmTfjoy0BNci1wCd6alUp8QH5lyISC8kSch X-Received: by 2002:a9d:1b6d:: with SMTP id l100mr4306893otl.70.1585257166585; Thu, 26 Mar 2020 14:12:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sonny Sasaka Date: Thu, 26 Mar 2020 14:12:34 -0700 Message-ID: Subject: Re: [PATCH] autopair: Fix compiler warning To: Luiz Augusto von Dentz 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 Thanks, Luiz. On Thu, Mar 26, 2020 at 2:09 PM Luiz Augusto von Dentz wrote: > > 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