Whamcloud - gitweb
LU-9286 ptlrpc: fix wrong error handlers
[fs/lustre-release.git] / lustre / ofd / ofd_grant.c
index a08a5d5..0f073fb 100644 (file)
@@ -23,7 +23,7 @@
  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2012, 2015, Intel Corporation.
+ * Copyright (c) 2012, 2016, Intel Corporation.
  */
 /*
  * lustre/ofd/ofd_grant.c
@@ -1075,7 +1075,6 @@ void ofd_grant_prepare_write(const struct lu_env *env,
        int                      from_cache;
        int                      force = 0; /* can use cached data intially */
        long                     chunk = ofd_grant_chunk(exp, ofd, NULL);
-       int                      rc;
 
        ENTRY;
 
@@ -1117,7 +1116,7 @@ refresh:
                         * space on the server */
                        spin_unlock(&ofd->ofd_grant_lock);
                        /* discard errors, at least we tried ... */
-                       rc = dt_sync(env, ofd->ofd_osd);
+                       dt_sync(env, ofd->ofd_osd);
                        force = 2;
                        goto refresh;
                }