cifs: Fix null pointer check in cifs_read
authorSteve French <stfrench@microsoft.com>
Wed, 13 May 2020 15:27:16 +0000 (10:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:16:37 +0000 (08:16 +0200)
commit0d6297d8f734f194112751d0f5d87b504a8d45a7
tree910a50ceede495f315696e97d026194c3859beeb
parentd44df08cff0aab09974e25156f2f70657e3a5e0d
cifs: Fix null pointer check in cifs_read

[ Upstream commit 9bd21d4b1a767c3abebec203342f3820dcb84662 ]

Coverity scan noted a redundant null check

Coverity-id: 728517
Reported-by: Coverity <scan-admin@coverity.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Shyam Prasad N <nspmangalore@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/file.c