1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

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.
This commit is contained in:
Zdenek Kabelac 2011-11-18 19:36:10 +00:00
parent 5392675f4c
commit 749c2dc4ab

View File

@ -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;