diff options
author | Sami Kerola | 2012-02-07 22:14:34 +0100 |
---|---|---|
committer | Karel Zak | 2012-02-08 14:05:39 +0100 |
commit | 07023b0736cebde0a469caea5bc9b9c99d64b01e (patch) | |
tree | 2aa8fd486fb36eb5d04a31e44cafb7eb5568cbf9 /libblkid | |
parent | sfdisk: free variable which got the allocation [cppcheck] (diff) | |
download | kernel-qcow2-util-linux-07023b0736cebde0a469caea5bc9b9c99d64b01e.tar.gz kernel-qcow2-util-linux-07023b0736cebde0a469caea5bc9b9c99d64b01e.tar.xz kernel-qcow2-util-linux-07023b0736cebde0a469caea5bc9b9c99d64b01e.zip |
libblkid: clarify operation order [cppcheck]
[libblkid/src/cache.c:265]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'libblkid')
-rw-r--r-- | libblkid/src/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/cache.c b/libblkid/src/cache.c index 2eab2d329..a60495aa5 100644 --- a/libblkid/src/cache.c +++ b/libblkid/src/cache.c @@ -262,7 +262,7 @@ int main(int argc, char** argv) argv[0], ret); exit(1); } - if ((ret = blkid_probe_all(cache) < 0)) + if ((ret = blkid_probe_all(cache)) < 0) fprintf(stderr, "error probing devices\n"); blkid_put_cache(cache); |