Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5069846rwn; Mon, 12 Sep 2022 04:05:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR6LsVvpBIsfxID7TJH7snNkgGyfYWcuvHy/lD7lIKY5VST6n26MJ21l8HiJZMRgepel2rZc X-Received: by 2002:a17:907:6096:b0:73d:9d12:4b04 with SMTP id ht22-20020a170907609600b0073d9d124b04mr18635046ejc.745.1662980720057; Mon, 12 Sep 2022 04:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662980720; cv=none; d=google.com; s=arc-20160816; b=vjWybcm0LDvYtTYH55+jwH768Vt5y9HdzyReb3g3DexNds5ZPppYszJs8XeLaTKgC3 Zam8IPUQ+9wieyVjsKhTGTsX1E07ToW1i8d/2G3F0uHk5BBNwaXSTBokB3v5dsWlfIhB GVabjHpNs78DGbHLGDdCEghV3S6TsHgaT1XUUujQKwG93D9tTfdq0/N+voQebbSc0rN7 eRdBZ6C6Mhd86X7eYjBQxYkI4i1IfjB5ivhGzOC/0kypPMjznOlDCMVSkm+/iPJxh7f8 WEBjmwaAhtIEBlocA4cY24TxMY7LUQSp4lb5sLiKs4G2c1GcOjSjN1/iQM1SA2V3ER6k bmVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:organization:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=z2x8Smv3gzc1zbjyYWhGuFksgZHwrTYyL4eyYd/9Q6s=; b=UL71dBIJHIB3yGAZQb3EBHhdy2CLx0+obBVyI5UVezSJWfHXg9Uq5u+6KgumnXW6wu 2dQdW/9HCENsCAVCiL51v3I2iDtktz4U1JZJdUK0OwwBBjpo5j62t9P4THqfvqTw9UEe /7F/7jxC8AqLEcWts8n41/d5faePxEw4Iwa5R8d7MjZagaIgDmD4xt+PFfBoIximOMhc W77q5qvBEXPQ8u/wqdojvH7xUhv4wyylnu1XR7jbP0XNym+shMekxKskfFfAbE0+QBxT qZ90jnSR8k5qcq3KGh6Ns1SHgfVnZ2/Ok8ga994g3H6iCAjwg39RmjST1RsKPjvgk5K3 b5Tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb6-20020a0564020d0600b00447e9c56162si7264648edb.11.2022.09.12.04.04.47; Mon, 12 Sep 2022 04:05:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbiILLDE (ORCPT + 99 others); Mon, 12 Sep 2022 07:03:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiILLDD (ORCPT ); Mon, 12 Sep 2022 07:03:03 -0400 Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 556D9220CC for ; Mon, 12 Sep 2022 04:03:02 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 8A0072012C; Mon, 12 Sep 2022 13:03:00 +0200 (CEST) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yh6EehX2MSYf; Mon, 12 Sep 2022 13:03:00 +0200 (CEST) Received: from begin (nat-inria-interne-52-gw-01-bso.bordeaux.inria.fr [194.199.1.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 32C0120127; Mon, 12 Sep 2022 13:02:59 +0200 (CEST) Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1oXhDO-008y6m-1O; Mon, 12 Sep 2022 13:02:58 +0200 Date: Mon, 12 Sep 2022 13:02:58 +0200 From: Samuel Thibault To: cgel.zte@gmail.com Cc: w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, Cspeakup@linux-speakup.org, linux-kernel@vger.kernel.org, Xu Panda , Zeal Robot Subject: Re: [PATCH linux-next] speakup/utils: use "!P" instead of "P == 0" Message-ID: <20220912110258.jwyv4xenfdvmo3p3@begin> Mail-Followup-To: Samuel Thibault , cgel.zte@gmail.com, w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, Cspeakup@linux-speakup.org, linux-kernel@vger.kernel.org, Xu Panda , Zeal Robot References: <20220912102059.18215-1-xu.panda@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220912102059.18215-1-xu.panda@zte.com.cn> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cgel.zte@gmail.com, le lun. 12 sept. 2022 10:21:00 +0000, a ecrit: > From: Xu Panda > > comparing pointer to 0, use !P instead of it. > > Reported-by: Zeal Robot > Signed-off-by: Xu Panda Reviewed-by: Samuel Thibault > --- > drivers/accessibility/speakup/utils.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/accessibility/speakup/utils.h b/drivers/accessibility/speakup/utils.h > index 4bf2ee8ac246..58ca9847637f 100644 > --- a/drivers/accessibility/speakup/utils.h > +++ b/drivers/accessibility/speakup/utils.h > @@ -36,7 +36,7 @@ static inline void open_input(const char *dir_name, const char *name) > else > snprintf(filename, sizeof(filename), "%s", name); > infile = fopen(filename, "r"); > - if (infile == 0) { > + if (!infile) { > fprintf(stderr, "can't open %s\n", filename); > exit(1); > } > -- > 2.15.2 >