NFS: checking for NULL instead of IS_ERR() in nfs_commit_file()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 23 May 2016 10:21:01 +0000 (13:21 +0300)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 25 May 2016 16:11:58 +0000 (12:11 -0400)
commit2997bfd0492d33d230b1475909a0211157a734bc
tree0e7ed809bc6feae676421b3e2fa81e3b65a40ffd
parent1b3c6d07e29515064aca8a9f86efaea7da4da027
NFS: checking for NULL instead of IS_ERR() in nfs_commit_file()

nfs_create_request() doesn't return NULL, it returns error pointers.

Fixes: 67911c8f18b5 ('NFS: Add nfs_commit_file()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/write.c