diff options
author | Martin Lindhe <martin-commit@ubique.se> | 2016-11-16 15:39:55 +0100 |
---|---|---|
committer | Cyrill Gorcunov <gorcunov@gmail.com> | 2017-01-05 22:38:41 +0300 |
commit | f1725266976491e5632ab011d6f571e6a0361284 (patch) | |
tree | 403df4003688001595af52a79b2a8761f4ffef43 | |
parent | 5b852761961db148d990acdcff793ad7b74c6d35 (diff) | |
download | nasm-f1725266976491e5632ab011d6f571e6a0361284.tar.gz |
outas86: Shrink as86_section_names
fix pvs-studio error 'V581 The conditional expressions of the 'if'
operators situated alongside each other are identical.
Check lines: 170, 173.'
Signed-off-by: Martin Lindhe <martin-commit@ubique.se>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | output/outas86.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/output/outas86.c b/output/outas86.c index bdd6c598..3079bc82 100644 --- a/output/outas86.c +++ b/output/outas86.c @@ -167,11 +167,10 @@ static int32_t as86_section_names(char *name, int pass, int *bits) /* * Default is 16 bits. */ - if (!name) + if (!name) { *bits = 16; - - if (!name) return stext.index; + } if (!strcmp(name, ".text")) return stext.index; |