From: Li Zefan Date: Fri, 7 May 2010 05:58:04 +0000 (+0800) Subject: xconfig: clean up X-Git-Tag: v3.0~2467^2~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1f96f091ee146836dd73ecce531f8e0a170cfca;p=platform%2Fkernel%2Flinux-amlogic.git xconfig: clean up @ok is a pointer to a bool var, so we should check the value of *ok. But actually we don't need to check it, so just remove the if statement. Signed-off-by: Li Zefan Signed-off-by: Michal Marek --- diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index 00c5150..47cdeae 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -58,11 +58,10 @@ QValueList ConfigSettings::readSizes(const QString& key, bool *ok) { QValueList result; QStringList entryList = readListEntry(key, ok); - if (ok) { - QStringList::Iterator it; - for (it = entryList.begin(); it != entryList.end(); ++it) - result.push_back((*it).toInt()); - } + QStringList::Iterator it; + + for (it = entryList.begin(); it != entryList.end(); ++it) + result.push_back((*it).toInt()); return result; }