From 42aa10c985f2003c04ba89ddfee847bfe26d4a0b Mon Sep 17 00:00:00 2001 From: Martin Lindhe Date: Wed, 16 Nov 2016 15:38:12 +0100 Subject: [PATCH] output,aout: Improve aout_section_names fix pvs-studio error 'V581 The conditional expressions of the 'if' operators situated alongside each other are identical. Check lines: 246, 249.' Signed-off-by: Martin Lindhe Signed-off-by: Cyrill Gorcunov --- output/outaout.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/output/outaout.c b/output/outaout.c index 8ab55ffe..5e62d6ad 100644 --- a/output/outaout.c +++ b/output/outaout.c @@ -243,11 +243,10 @@ static int32_t aout_section_names(char *name, int pass, int *bits) /* * Default to 32 bits. */ - if (!name) + if (!name) { *bits = 32; - - if (!name) return stext.index; + } if (!strcmp(name, ".text")) return stext.index;