ext4: simplify checking quota limits in ext4_statfs()
authorJan Kara <jack@suse.cz>
Thu, 30 Jan 2020 11:11:48 +0000 (12:11 +0100)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Feb 2020 16:53:11 +0000 (11:53 -0500)
commit46d36880d1c6f9b9a0cbaf90235355ea1f4cab96
tree73cb3edff4462af5ae7964c346c36617f6e933b1
parent14c9ca0583eee8df285d68a0e6ec71053efd2228
ext4: simplify checking quota limits in ext4_statfs()

Coverity reports that conditions checking quota limits in ext4_statfs()
contain dead code. Indeed it is right and current conditions can be
simplified.

Link: https://lore.kernel.org/r/20200130111148.10766-1-jack@suse.cz
Reported-by: Coverity <scan-admin@coverity.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/super.c