]> granicus.if.org Git - icinga2/commitdiff
Remove redundant check
authorGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 12:18:08 +0000 (13:18 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 12:21:06 +0000 (13:21 +0100)
plugins/check_disk.cpp

index 2ae31b34bd81261d9537a8e35927219152a7b1c5..988adb7605035a127613e10d87cf41b171e05c78 100644 (file)
@@ -274,7 +274,7 @@ int check_drives(vector<drive>& vDrives)
                wcout << L"Getting logic drive string (includes network drives)" << endl;
 
        dwResult = GetLogicalDriveStrings(MAX_PATH, szLogicalDrives);
-       if (dwResult < 0 || dwResult > MAX_PATH) 
+       if (dwResult > MAX_PATH)
                goto die;
        if (debug)
                wcout << L"Splitting string into single drive names" << endl;