Skip to content

Commit 1961df8

Browse files
authored
Fix clang format (#294)
Regressions introduced by #275 and #287
1 parent 48a5942 commit 1961df8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/arm/linux/aarch64-isa.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,3 @@ void cpuinfo_arm64_linux_decode_isa_from_proc_cpuinfo(
209209
isa->smelen = ret & PR_SME_VL_LEN_MASK;
210210
}
211211
}
212-

src/x86/linux/cpuinfo.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ struct proc_cpuinfo_parser_state {
8080
* Decode a single line of /proc/cpuinfo information.
8181
* Lines have format <words-with-spaces>[ ]*:[ ]<space-separated words>
8282
*/
83-
static bool parse_line(
84-
const char* line_start,
85-
const char* line_end,
86-
void* context,
87-
uint64_t line_number) {
83+
static bool parse_line(const char* line_start, const char* line_end, void* context, uint64_t line_number) {
8884
struct proc_cpuinfo_parser_state* restrict state = context;
8985
/* Empty line. Skip. */
9086
if (line_start == line_end) {
@@ -215,6 +211,5 @@ bool cpuinfo_x86_linux_parse_proc_cpuinfo(
215211
.max_processors_count = max_processors_count,
216212
.processors = processors,
217213
};
218-
return cpuinfo_linux_parse_multiline_file(
219-
"/proc/cpuinfo", BUFFER_SIZE, parse_line, &state);
214+
return cpuinfo_linux_parse_multiline_file("/proc/cpuinfo", BUFFER_SIZE, parse_line, &state);
220215
}

0 commit comments

Comments
 (0)