cifs: fix incorrect handling of smb2_set_sparse() return in smb3_simple_falloc
diff mbox series

Message ID 20190314025821.26916-1-lsahlber@redhat.com
State New
Headers show
Series
  • cifs: fix incorrect handling of smb2_set_sparse() return in smb3_simple_falloc
Related show

Commit Message

Ronnie Sahlberg March 14, 2019, 2:58 a.m. UTC
smb2_set_sparse does not return -errno, it returns a boolean where
true means success.
Change this to just ignore the return value just like the other callsites.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
---
 fs/cifs/smb2ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index eee5a27ca95e..581eaa5f34f8 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -2781,7 +2781,7 @@  static long smb3_simple_falloc(struct file *file, struct cifs_tcon *tcon,
 			return rc;
 		}
 
-		rc = smb2_set_sparse(xid, tcon, cfile, inode, false);
+		smb2_set_sparse(xid, tcon, cfile, inode, false);
 	}
 	/* BB: else ... in future add code to extend file and set sparse */