Skip to content

Commit 9bd21d4

Browse files
committed
cifs: Fix null pointer check in cifs_read
Coverity scan noted a redundant null check Coverity-id: 728517 Reported-by: Coverity <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Shyam Prasad N <[email protected]>
1 parent 3dc58df commit 9bd21d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4060,7 +4060,7 @@ cifs_read(struct file *file, char *read_data, size_t read_size, loff_t *offset)
40604060
* than it negotiated since it will refuse the read
40614061
* then.
40624062
*/
4063-
if ((tcon->ses) && !(tcon->ses->capabilities &
4063+
if (!(tcon->ses->capabilities &
40644064
tcon->ses->server->vals->cap_large_files)) {
40654065
current_read_size = min_t(uint,
40664066
current_read_size, CIFSMaxBufSize);

0 commit comments

Comments
 (0)