summaryrefslogtreecommitdiffstats
path: root/fs/ntfs/super.c
diff options
context:
space:
mode:
authorJesper Juhl <juhl-lkml@dif.dk>2005-04-04 14:59:56 +0100
committerAnton Altaparmakov <aia21@cantab.net>2005-05-05 11:42:27 +0100
commit251c8427c9c418674fc3c04a11de95dc3661b560 (patch)
treeb67bab32762a4a64083de64281b1249bccfd9402 /fs/ntfs/super.c
parent53d59aad9326199ef5749c97513db498309a057e (diff)
downloadtalos-obmc-linux-251c8427c9c418674fc3c04a11de95dc3661b560.tar.gz
talos-obmc-linux-251c8427c9c418674fc3c04a11de95dc3661b560.zip
NTFS: Remove checks for NULL before calling kfree() since kfree() does the
checking itself. (Jesper Juhl) Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/super.c')
-rw-r--r--fs/ntfs/super.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ntfs/super.c b/fs/ntfs/super.c
index 78416eb2a168..25fa1d1668da 100644
--- a/fs/ntfs/super.c
+++ b/fs/ntfs/super.c
@@ -1193,8 +1193,7 @@ static BOOL load_and_init_quota(ntfs_volume *vol)
return FALSE;
}
/* We do not care for the type of match that was found. */
- if (name)
- kfree(name);
+ kfree(name);
/* Get the inode. */
tmp_ino = ntfs_iget(vol->sb, MREF(mref));
if (IS_ERR(tmp_ino) || is_bad_inode(tmp_ino)) {
OpenPOWER on IntegriCloud