From: Li Zefan Date: Fri, 7 May 2010 05:58:04 +0000 (+0800) Subject: xconfig: clean up X-Git-Tag: v2.6.36-rc1~547^2~19 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c1f96f091ee146836dd73ecce531f8e0a170cfca;p=~emulex%2Finfiniband.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 00c51507cfc..47cdeae8378 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; }