summaryrefslogtreecommitdiffstats
path: root/lib/filters/filter.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-11-18 19:36:10 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-11-18 19:36:10 +0000
commit749c2dc4abc344ccc3ce79415827878c218feb97 (patch)
tree57fed529e4d321419cec03a8053ade716b54ff72 /lib/filters/filter.c
parent5392675f4cda252dd4e463ccb425479c48120f2f (diff)
downloadlvm2-749c2dc4abc344ccc3ce79415827878c218feb97.tar.gz
lvm2-749c2dc4abc344ccc3ce79415827878c218feb97.tar.xz
lvm2-749c2dc4abc344ccc3ce79415827878c218feb97.zip
Remove constant expression check
"result_independent_of_operands: ((dev->dev & 0xfff00UL) >> 8) == 18446744073709551615UL /* -1 */ is always false regardless of the values of its operands (logical operand of if)." 'dev->dev' is set in dev-cache.c _insert() and it's not expectable st_rdev would have '-1' This code has been introduced with drbd support commit and code never worked - so eliminated.
Diffstat (limited to 'lib/filters/filter.c')
-rw-r--r--lib/filters/filter.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/filters/filter.c b/lib/filters/filter.c
index c66939ad..4c3d3b7d 100644
--- a/lib/filters/filter.c
+++ b/lib/filters/filter.c
@@ -64,9 +64,6 @@ int dev_subsystem_part_major(const struct device *dev)
{
dev_t primary_dev;
- if (MAJOR(dev->dev) == -1)
- return 0;
-
if (MAJOR(dev->dev) == _md_major)
return 1;