Commit 4fcf5563 authored by Petri Latvala's avatar Petri Latvala

lib/igt_kms: Aid static analyzer with the control flow

If we first find n amount of ':' in a string, the amount is still n
when we walk through it the second time.
Signed-off-by: Petri Latvala's avatarPetri Latvala <>
Cc: Joonas Lahtinen <>
Reviewed-by: Arkadiusz Hiler's avatarArkadiusz Hiler <>
parent c84502b6
......@@ -86,6 +86,7 @@ static struct kmod_ctx *kmod_ctx(void)
p = config_paths_str;
for (i = 0; i < count; ++i) {
igt_assert(p != NULL);
config_paths[i] = p;
if ((p = strchr(p, ':')))
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