1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

make: opened can be needed for either defines case

Reported-by: adamboardman of gemian
This commit is contained in:
Zdenek Kabelac 2021-09-24 17:46:09 +02:00
parent 9971459d19
commit df70dca995

View File

@ -380,8 +380,10 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet)
return 0;
}
#ifdef O_DIRECT_SUPPORT
#if defined(O_NOATIME) || defined(O_DIRECT_SUPPORT)
opened:
#endif
#ifdef O_DIRECT_SUPPORT
if (direct)
dev->flags |= DEV_O_DIRECT_TESTED;
#endif