Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1636691rwl; Thu, 5 Jan 2023 17:14:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXvy6vAX6IqSuL0HDQYrOAawKGtLnlMlbN3BOmlpb7NLD/hL6c/k4BC/NTDh52IFwNEPEiD5 X-Received: by 2002:a17:907:4d8:b0:7c0:9a2f:ac93 with SMTP id vz24-20020a17090704d800b007c09a2fac93mr36822114ejb.31.1672967659985; Thu, 05 Jan 2023 17:14:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672967659; cv=none; d=google.com; s=arc-20160816; b=rpQ/IdvnNaFX/NvIBsi1uCD+4+vgueCCSVXpNT7ZlaW3ygb8d+u8rFffuPSo67GyeT qMy7aWGRJ6KTBBToOBrwuOQOGv47qBRGvomiK9WuGpBzIrz1rvksllwbuDKEzcVd/Fj8 4P7x8uwmSdL5E4NvCGx9cSPCLlaOD7qVSV1FoQQHR6pwmj3D4Hs4h3lXwgGprO4bcson 3w0lNjBaN20lPpCsaULDXY1xoOWuKq6dJPPV2SJsspTYc3yJMCPz1lpGIE1pQeat7Jme Xvj4vLtIipftN+WGrVWQmCqc+dpLjfyX9dKj+Pknp3zEzkgMtCMRps3lLXyTu9qfBpDx qgZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tvUFt1+HWdkXabUE+TpGf4LX4aNZ2toye/dAser7zAw=; b=erAzQHtaj5TbCvMaz/vNjGfUYDn2pX05W1RL/QXcfIQQ1h9c6yZdM9TgLqKs1n1qD3 DcYU1pgGGp8H5LMrXOlwjFwuOGbHUvjIAFfycMv9OY+STX0JZTfvpQFo6hld5QolRDd7 YugPNtt1yOQYphf+IipARzXnyV+o2FbbxQRwPaANQRa0deMOUjxru6VfIl/1Um9PPami IZNw/3WAxexC6eGUg9dvPzFHj+3PJxiqf0uDsi7J6ItK3XANu1ZXYyLvfkSTPn14KrJB jfAzrZmnQ3goOSdiUlq6pKEoobmyYFf/y1Rr4JZGkUXV1idljG9Bvo8DEd1J2n4iQEwi 9jkQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b007c0f2185e37si30945405ejc.868.2023.01.05.17.14.06; Thu, 05 Jan 2023 17:14:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235796AbjAFAl1 (ORCPT + 57 others); Thu, 5 Jan 2023 19:41:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235864AbjAFAlX (ORCPT ); Thu, 5 Jan 2023 19:41:23 -0500 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ADC15F4AD for ; Thu, 5 Jan 2023 16:41:18 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VYxJPik_1672965675; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VYxJPik_1672965675) by smtp.aliyun-inc.com; Fri, 06 Jan 2023 08:41:16 +0800 From: Yang Li To: samuel.thibault@ens-lyon.org Cc: w.d.hubbs@gmail.com, chris@the-brannons.com, kirk@reisers.ca, speakup@linux-speakup.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] speakup: Fix warning comparing pointer to 0 Date: Fri, 6 Jan 2023 08:41:14 +0800 Message-Id: <20230106004114.72589-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 ./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 --- 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