projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff944c4
)
selftests: arm64: Remove bogus error check on writing to files
author
Mark Brown
<broonie@kernel.org>
Wed, 29 Sep 2021 15:19:23 +0000
(16:19 +0100)
committer
Will Deacon
<will@kernel.org>
Wed, 29 Sep 2021 15:33:04 +0000
(16:33 +0100)
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 <broonie@kernel.org>
Link:
https://lore.kernel.org/r/20210929151925.9601-3-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/vec-syscfg.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/arm64/fp/vec-syscfg.c
b/tools/testing/selftests/arm64/fp/vec-syscfg.c
index b2de002ee3258ec905bfaff42ae6eea8590030c0..d48d3ee1bc36e613f3a0598306e898eb3884ace9 100644
(file)
--- 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;
}