Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1639079rwl; Thu, 5 Jan 2023 17:16:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXsxnDVRhJvP2mRrCC9vGhzJLEHzhp9u/09idivq+JklqUVoDAFdOn5gWXKEJ9C+OQgsCIXl X-Received: by 2002:a17:907:cbc9:b0:7ad:b6d8:c9d0 with SMTP id vk9-20020a170907cbc900b007adb6d8c9d0mr48911548ejc.53.1672967807278; Thu, 05 Jan 2023 17:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672967807; cv=none; d=google.com; s=arc-20160816; b=jhSzMTzfDQukL7BDWjUWk6XcSB21/jaRdY2peablM3qu37j+Y8nGj6W9LBrC4UKlcJ DinKC2HZZHv665ZUdQLhTOmpnRJY3IsHE53HEKroxA2A20gFJnleRZda+oyjfW6wQSnd SeCLU1axH1c3DLYE64p3bNlQPZhfiTfL+oNf3/9Vz6CkMCTrx7Al4+KAusUaPd0NSGm1 EwH5sYo1M1ceVVsZeU6BOoX/U0E4Sj56RQgEQgPBmdd1bceiew9wxY4VNZV+Pb/XbEqW UfjJb4BD1UvqDj6A+VEo6SUOiKUU8/zv2H3K9ATeu5o5Pq9g41DG7WIbXuxyjBlHP08S 1bRQ== 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-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=k+XKod6qdM3N2ziFiEiGEusQBO+GeYTlfoYTIMagFew=; b=WD+ZgcY6rupNxv3Zf5xVoZDJo24sGmzgW2AkHPecXDeUYP45zrdwqHBjcPf7RMwzzU YOkHZiZbVX6vDTo+dMsXvKbGe7nrhPb39TaNn2sdgDq+DReMK9x985Q8OvWDR8HdG0wl yeBQygAekockK6XN4TgB+utdFwFVvo4I7aKnYHgyVUvtH2EnLK8+/ki99pmwgQWu1xd8 ToTxKiXUyJi2Tye6mF+4M9KUqAytvl/Lzz9OAPlc2pVXy1Yh9ohS5bGtQ0Xi8sGyBvBL XlnKFZg4D785W2o/OVXTBk8IcLkD7iYKhSR9tCMIO1LF8qbI0Rr82BqorgII9FjuHfY+ CQRQ== 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 wz2-20020a170906fe4200b007adb868f102si6223220ejb.476.2023.01.05.17.16.34; Thu, 05 Jan 2023 17:16:47 -0800 (PST) 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 S236159AbjAFAwI (ORCPT + 55 others); Thu, 5 Jan 2023 19:52:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235969AbjAFAwG (ORCPT ); Thu, 5 Jan 2023 19:52:06 -0500 Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A392DC4 for ; Thu, 5 Jan 2023 16:52:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id C21AD20176; Fri, 6 Jan 2023 01:52:02 +0100 (CET) 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 CXxScuYzd18E; Fri, 6 Jan 2023 01:52:02 +0100 (CET) Received: from begin (adijon-658-1-86-31.w86-204.abo.wanadoo.fr [86.204.233.31]) (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 157DA20172; Fri, 6 Jan 2023 01:52:02 +0100 (CET) Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1pDaxl-000k0r-25; Fri, 06 Jan 2023 01:52:01 +0100 Date: Fri, 6 Jan 2023 01:52:01 +0100 From: Samuel Thibault To: Yang Li Cc: w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, speakup@linux-speakup.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH -next] speakup: Fix warning comparing pointer to 0 Message-ID: <20230106005201.h3ikdaisqgjupavc@begin> Mail-Followup-To: Samuel Thibault , Yang Li , w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, speakup@linux-speakup.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20230106004114.72589-1-yang.lee@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230106004114.72589-1-yang.lee@linux.alibaba.com> 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 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 Yang Li, le ven. 06 janv. 2023 08:41:14 +0800, a ecrit: > ./drivers/accessibility/speakup/utils.h:39:15-16: WARNING comparing pointer to 0 > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3636 > Reported-by: Abaci Robot > Signed-off-by: Yang Li 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 4ce9a12f7664..db00c962f8e2 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.20.1.7.g153144c > -- Samuel --- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'Inria.