LVM2/lib/filters filter.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-11-18 19:36:10
Modified files:
lib/filters : filter.c
Log message:
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.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/filters/filter.c.diff?cvsroot=lvm2&r1=1.65&r2=1.66
lib/filters/filter.c +0 -3
@@ -64,9 +64,6 @@ {dev_t primary_dev; -if (MAJOR (dev->dev) ==-1 ) -return 0 ; -if (MAJOR (dev->dev) == _md_major)return 1 ;