diff options
author | Anton Salikhmetov <alexo@tuxera.com> | 2010-12-16 14:44:51 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@tuxera.com> | 2010-12-16 18:08:43 +0100 |
commit | 596276c3571e2108f4b336be545ece2eacf3da59 (patch) | |
tree | c00fcd0e01cf12a5edfe8e87ba2f39fcd07c90a5 /fs/hfsplus | |
parent | 34a2d313c51f47cae50ccb89f4196462665f2c48 (diff) |
hfsplus: fix an artifact in ioctl flag checking
Fix a flag checking artifact in hfsplus_ioctl_getflags() routine
found while doing clean-up against assignments inside `if's.
Signed-off-by: Anton Salikhmetov <alexo@tuxera.com>
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
Diffstat (limited to 'fs/hfsplus')
-rw-r--r-- | fs/hfsplus/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/ioctl.c b/fs/hfsplus/ioctl.c index f5a7224f4cb..508ce662ce1 100644 --- a/fs/hfsplus/ioctl.c +++ b/fs/hfsplus/ioctl.c @@ -28,7 +28,7 @@ static int hfsplus_ioctl_getflags(struct file *file, int __user *user_flags) if (inode->i_flags & S_IMMUTABLE) flags |= FS_IMMUTABLE_FL; - if (inode->i_flags |= S_APPEND) + if (inode->i_flags & S_APPEND) flags |= FS_APPEND_FL; if (hip->userflags & HFSPLUS_FLG_NODUMP) flags |= FS_NODUMP_FL; |