diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2023-09-12 13:37:44 +0100 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:13 -0400 |
commit | 74c1e4221b6630e864d1efe4e718538dcee5d816 (patch) | |
tree | 824036dff4991b66faba2835379614c6428c32c9 /fs/bcachefs | |
parent | 2a831e4ba9b09e1b30384b65eca7c2ac33aa69b2 (diff) | |
download | linux-stable-74c1e4221b6630e864d1efe4e718538dcee5d816.tar.gz linux-stable-74c1e4221b6630e864d1efe4e718538dcee5d816.tar.bz2 linux-stable-74c1e4221b6630e864d1efe4e718538dcee5d816.zip |
bcachefs: remove redundant pointer q
The pointer q is being assigned a value but it is never read. The
assignment and pointer are redundant and can be removed.
Cleans up clang scan build warning:
fs/bcachefs/quota.c:813:2: warning: Value stored to 'q' is never
read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r-- | fs/bcachefs/quota.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/bcachefs/quota.c b/fs/bcachefs/quota.c index 60d27f726519..f16aa3bc9679 100644 --- a/fs/bcachefs/quota.c +++ b/fs/bcachefs/quota.c @@ -786,7 +786,6 @@ static int bch2_quota_set_info(struct super_block *sb, int type, { struct bch_fs *c = sb->s_fs_info; struct bch_sb_field_quota *sb_quota; - struct bch_memquota_type *q; int ret = 0; if (0) { @@ -810,8 +809,6 @@ static int bch2_quota_set_info(struct super_block *sb, int type, ~(QC_SPC_TIMER|QC_INO_TIMER|QC_SPC_WARNS|QC_INO_WARNS)) return -EINVAL; - q = &c->quotas[type]; - mutex_lock(&c->sb_lock); sb_quota = bch2_sb_get_or_create_quota(&c->disk_sb); if (!sb_quota) { |