lib/loopdev: fix part scan detection code
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
383e7a2720
commit
8b04761dc6
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ int loopmod_supports_partscan(void)
|
|||
return 0;
|
||||
rc = fscanf(f, "%d", &ret);
|
||||
fclose(f);
|
||||
return rc = 1 ? ret : 0;
|
||||
return rc == 1 ? ret : 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue