From 837edaabc446b946fca5f318ae53ad305eab13fd Mon Sep 17 00:00:00 2001 From: Matthew Dawson Date: Tue, 29 Dec 2015 00:30:50 -0500 Subject: Remove duplicate branch in kconfig_compiler.cpp This has been around for a long time, no need to dupilcate. Coverity issue 1289077. --- src/kconfig_compiler/kconfig_compiler.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/kconfig_compiler/kconfig_compiler.cpp') diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp index c5bcdc1b..ea68fec6 100644 --- a/src/kconfig_compiler/kconfig_compiler.cpp +++ b/src/kconfig_compiler/kconfig_compiler.cpp @@ -1232,12 +1232,7 @@ QString newItem(const CfgEntry* entry, const QString &key, const QString& defaul t += ", values" + entry->name(); } if (!defaultValue.isEmpty()) { - t += QLatin1String(", "); - if (entry->type() == QLatin1String("String")) { - t += defaultValue; - } else { - t += defaultValue; - } + t += QLatin1String(", ") + defaultValue; } t += QLatin1String(" )"); -- cgit v1.2.1