summaryrefslogtreecommitdiffstats
path: root/.gitpublish
diff options
context:
space:
mode:
authorSu Hang2018-02-25 05:35:58 +0100
committerStefan Hajnoczi2018-03-05 10:03:17 +0100
commita1515161b563acd0986867fc37084c1cf952ba35 (patch)
tree2883fccdb584c09d82694716fafc929f6482b587 /.gitpublish
parentutil/uri.c: remove brackets that wrap `return` statement's content. (diff)
downloadqemu-a1515161b563acd0986867fc37084c1cf952ba35.tar.gz
qemu-a1515161b563acd0986867fc37084c1cf952ba35.tar.xz
qemu-a1515161b563acd0986867fc37084c1cf952ba35.zip
util/uri.c: wrap single statement blocks with braces {}
For this patch, using curly braces to wrap `if` `while` `else` statements, which only hold single statement. For example: ''' if (cond) statement; ''' to ''' if (cond) { statement; } ''' And using tricks that compare the disassemblies before and after code changes, to make sure code logic isn't changed: ''' git checkout master make util/uri.o strip util/uri.o objdump -Drx util/uri.o > /tmp/uri-master.txt git checkout cleanupbranch make util/uri.o strip util/uri.o objdump -Drx util/uri.o > /tmp/uri-cleanup.txt Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to '.gitpublish')
0 files changed, 0 insertions, 0 deletions