summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus
diff options
context:
space:
mode:
authorAnton Salikhmetov <alexo@tuxera.com>2010-12-16 14:44:51 +0200
committerChristoph Hellwig <hch@tuxera.com>2010-12-16 18:08:43 +0100
commit596276c3571e2108f4b336be545ece2eacf3da59 (patch)
treec00fcd0e01cf12a5edfe8e87ba2f39fcd07c90a5 /fs/hfsplus
parent34a2d313c51f47cae50ccb89f4196462665f2c48 (diff)
downloadlinux-596276c3571e2108f4b336be545ece2eacf3da59.tar.gz
linux-596276c3571e2108f4b336be545ece2eacf3da59.tar.bz2
linux-596276c3571e2108f4b336be545ece2eacf3da59.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/ioctl.c b/fs/hfsplus/ioctl.c
index f5a7224f4cbb..508ce662ce12 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;