Commit 63375e14 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Aaron Plattner
Browse files

test: remove assignment-as-truth-value warning


Signed-off-by: default avatarRémi Denis-Courmont <remid@nvidia.com>
Reviewed-by: default avatarAaron Plattner <aplattner@nvidia.com>
Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
parent ad1e737a
......@@ -12,7 +12,6 @@
static int countOpenFDs(void)
{
DIR *dir = opendir("/proc/self/fd");
struct dirent *ent;
int count = 0;
if (!dir) {
......@@ -21,7 +20,7 @@ static int countOpenFDs(void)
return 0;
}
while (ent = readdir(dir)) {
while (readdir(dir) != NULL) {
count++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment