Commit 87d218f9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] dquot: remove unneeded test

We're testing the nullness of `sb' potentially after rereferencing it
(although the compiler will have reordered things to avoid such a bug).

Just remove the test - the superblock pointer shouldn't be null in there.
parent 984e6953
...@@ -1295,9 +1295,6 @@ int vfs_quota_off(struct super_block *sb, int type) ...@@ -1295,9 +1295,6 @@ int vfs_quota_off(struct super_block *sb, int type)
int cnt; int cnt;
struct quota_info *dqopt = sb_dqopt(sb); struct quota_info *dqopt = sb_dqopt(sb);
if (!sb)
goto out;
/* We need to serialize quota_off() for device */ /* We need to serialize quota_off() for device */
down(&dqopt->dqonoff_sem); down(&dqopt->dqonoff_sem);
for (cnt = 0; cnt < MAXQUOTAS; cnt++) { for (cnt = 0; cnt < MAXQUOTAS; cnt++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment