Skip to content

Commit

Permalink
script/sorttable: Code style improvements
Browse files Browse the repository at this point in the history
Modified the code style issue of if() {},
keep the code style consistent.

Link: https://lkml.kernel.org/r/20211207151348.54921-3-yinan@linux.alibaba.com

Signed-off-by: Yinan Liu <yinan@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
  • Loading branch information
Yinan Liu authored and Steven Rostedt (VMware) committed Dec 11, 2021
1 parent 2972e30 commit c8a7ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sorttable.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,11 +364,11 @@ static int do_sort(Elf_Ehdr *ehdr,
void *retval = NULL;
/* wait for ORC tables sort done */
rc = pthread_join(orc_sort_thread, &retval);
if (rc)
if (rc) {
fprintf(stderr,
"pthread_join failed '%s': %s\n",
strerror(errno), fname);
else if (retval) {
} else if (retval) {
rc = -1;
fprintf(stderr,
"failed to sort ORC tables '%s': %s\n",
Expand Down

0 comments on commit c8a7ff1

Please sign in to comment.