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 <martin-commit@ubique.se>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Martin Lindhe 2016-11-16 15:38:12 +01:00 committed by Cyrill Gorcunov
parent b150e386ae
commit 42aa10c985

View File

@ -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;