use bitclear instead of seperating them and fix some typo

Signed-off-by: kevinetc123 <kaiwentan@harmonycloud.cn>
This commit is contained in:
kevinetc123
2017-02-09 17:30:21 +08:00
parent 42a17f9391
commit 6425680d94
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ func parseMountOptions(options []string) (int, string) {
// then it is a data value for a specific fs type
if f, exists := flags[o]; exists && f.flag != 0 {
if f.clear {
flag &= ^f.flag
flag &^= f.flag
} else {
flag |= f.flag
}