]> git.baikalelectronics.ru Git - kernel.git/commit
fs/ntfs3: Remove unnecessary condition checking from ntfs_file_read_iter
authorKari Argillander <kari.argillander@gmail.com>
Wed, 25 Aug 2021 18:25:22 +0000 (21:25 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 2 Sep 2021 15:51:26 +0000 (18:51 +0300)
commit7393166f85f9fa49aa24d911b863a8ead3a3f8db
treef1d139f33bebac81896927f71050f280c5f4a44e
parent311c1c86b677030b571ff13dea14f8504ca44e99
fs/ntfs3: Remove unnecessary condition checking from ntfs_file_read_iter

This check will be also performed in generic_file_read_iter() so we do
not want to check this two times in a row.

This was founded with Smatch
fs/ntfs3/file.c:803 ntfs_file_read_iter()
warn: unused return: count = iov_iter_count()

Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/file.c