From patchwork Wed Sep 29 15:19:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 514859 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:4087:0:0:0:0 with SMTP id m7csp131125jam; Wed, 29 Sep 2021 08:21:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG76Y5x9uDpIDswt65MEtCdltUJlxQ31AOniREXfosHcOU0CnoL/deLL3f1EkOVagEn3Rh X-Received: by 2002:a17:906:d1d6:: with SMTP id bs22mr304939ejb.554.1632928867214; Wed, 29 Sep 2021 08:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632928867; cv=none; d=google.com; s=arc-20160816; b=TY/ZG8bVfSRFakySLa8A3uyT5sJ2bl3MkQXnMZiD/kjCW3SGoP0360d5HMmMcMC8Ji tdxkmwdKPt6KRJgO6HNbYH2GEzEOhugBD8BPJNuS3L1jLuc7NWNz42dShLcl36pBBqTQ jJxe90NzF6x5yhaQmwndVgXoMmBIB2MJVnI+PNP6G6d84ugaynARneHLzs9NT4tbwNNA CynNImSzXUDutp8swAk3nGRJ987pjI4J4892Lu9i9lR0Ryw3pGdyWZgT0ZOypTg0KwHq mM6rvDVWBDIPPn2WKmk0WT8JCbSqHk53+Msa9/B2g2ec1bHG7MzpA2gANwxI7uyBFsK0 kdiA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c/av3IUSLY5qczNYM4PKKp5GWHvx2bURqa7EhiLay4w=; b=zyluUh4DbAAVVKPjCJYQ1hrcFQfWeXCPV0itcmL+vvOPbZ2jaXxErOJougmF7zvbA+ kLG7CNc0Eczq7A1onFVXFLg7v08Mv/OxWcpMwzipgdmItnBMSlwyypOz3DfUn1GKi9tr y3DGlOZkGX0fE3Tvk6nZ1wOcU6mvZlSOccBxbfeKhbcohW+99qsUAZOW8tQu6V7mh+bA CyJA0Gt0G/cmclAy4olvvE9TfURRe+oo5AblfJiKoubd9S0gGqfT/pVRhfzPUE5BdG0E wOCKLnPCduzaFh1hvRxWksOrBWv0KCiJyQSOrvPgP8MYPhac9h7GaXKYqyWMUtsYGL8U xE/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WeosoLhj; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w8si263244ede.307.2021.09.29.08.21.06; Wed, 29 Sep 2021 08:21:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WeosoLhj; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345017AbhI2PWr (ORCPT + 5 others); Wed, 29 Sep 2021 11:22:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:33326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344945AbhI2PWr (ORCPT ); Wed, 29 Sep 2021 11:22:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8354F60E90; Wed, 29 Sep 2021 15:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632928866; bh=yJ4ueh+BO+Eim5GlQAHvD/jC8/yyMw/A2pszTTlipf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WeosoLhjSZ2ADw8VKBMi1lZE0t2uDGiTjJUw0ycueB3gr1dBqo99pL1I9WHG6HKV7 qXi1FN/IAwGkVX0dzVMJK4nMPf0vZUbHDkLYk1jqw+Yn7fJMd1OqD14zzB5Q/X+fO5 UDEtNxcU8fO0KcNERM4AKqMdJkm/l/acQ1UmRcXRw3h6Oz36iclxctw6USk5l5rNng MIbBr7v1U04/aFj4lXNrApHbdZZnBgYlO6X9nqlln4s4msU3Yyjk+4mO00CVlzVt52 LI5RMXXMgRovqp/0q1GU7FX+zmcAzyYMoBUa2ixzRySnJoofG0pzUryhPQ2ofqrQhR z06k+GlVhuK5w== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, misono.tomohiro@fujitsu.com, Mark Brown Subject: [PATCH v3 2/4] selftests: arm64: Remove bogus error check on writing to files Date: Wed, 29 Sep 2021 16:19:23 +0100 Message-Id: <20210929151925.9601-3-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210929151925.9601-1-broonie@kernel.org> References: <20210929151925.9601-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1028; h=from:subject; bh=yJ4ueh+BO+Eim5GlQAHvD/jC8/yyMw/A2pszTTlipf8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhVIP6GHlxtnIY4Eu/5/J5cdKSDM5mRmL00dmRJpB8 pcoNJEyJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYVSD+gAKCRAk1otyXVSH0E18B/ 9Hs4jDmaOPQGNF84tDPugrITikWZnf2rOqvbePNTeuXKU+pjBgEI7bKkAak6UbYEioytcV++EUxOSx RjT2IXqKrIvCq1WrkBV2/3V8fF94Uu6lIS5jIAnzTEbTMWcNLIoDRaPpTf3EtmTgvltykTH9UhhDWm amvOLpAxUhsIx2aoICp/a3mtNPm6clUfSK/f/tNtZwk5hm3vQeSgJGi2P63LjyOIRiezNnNS5fv6sp hOusJLjutWPtE30sep9teggPkJS5vZN1Ma0ni2uQe7y9Qx4w9fOYhDyAWIUr1IuMcp+HguYeiSX95v pHIW1nZUtJneeKWQ+T0FXECKQbXC2+ X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Due to some refactoring with the error handling we ended up mangling things so we never actually set ret and therefore shouldn't be checking it. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/fp/vec-syscfg.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.20.1 diff --git a/tools/testing/selftests/arm64/fp/vec-syscfg.c b/tools/testing/selftests/arm64/fp/vec-syscfg.c index b2de002ee325..d48d3ee1bc36 100644 --- a/tools/testing/selftests/arm64/fp/vec-syscfg.c +++ b/tools/testing/selftests/arm64/fp/vec-syscfg.c @@ -180,7 +180,6 @@ static int file_read_integer(const char *name, int *val) static int file_write_integer(const char *name, int val) { FILE *f; - int ret; f = fopen(name, "w"); if (!f) { @@ -192,11 +191,6 @@ static int file_write_integer(const char *name, int val) fprintf(f, "%d", val); fclose(f); - if (ret < 0) { - ksft_test_result_fail("Error writing %d to %s\n", - val, name); - return -1; - } return 0; }