No functional changes. Improve readability.

Thanks Axel!
This commit is contained in:
Philippe Saint-Pierre
2011-11-27 18:13:13 -05:00
parent ec9e2f9018
commit 4d5d809045
+1 -2
View File
@@ -38,8 +38,7 @@
status_t
watch_volume(dev_t volume, uint32 flags, BMessenger target)
{
if ((flags & B_WATCH_NAME) == 0 && (flags & B_WATCH_STAT) == 0
&& (flags & B_WATCH_ATTR) == 0)
if ((flags & (B_WATCH_NAME | B_WATCH_STAT | B_WATCH_ATTR)) == 0)
return B_BAD_VALUE;
flags |= B_WATCH_VOLUME;