fs: xfs: xfs_log: Change return type from int to void
[platform/kernel/linux-starfive.git] / fs / xfs / xfs_log.c
index cbaf348..00e9f5c 100644 (file)
@@ -769,16 +769,12 @@ xfs_log_mount_finish(
  * The mount has failed. Cancel the recovery if it hasn't completed and destroy
  * the log.
  */
-int
+void
 xfs_log_mount_cancel(
        struct xfs_mount        *mp)
 {
-       int                     error;
-
-       error = xlog_recover_cancel(mp->m_log);
+       xlog_recover_cancel(mp->m_log);
        xfs_log_unmount(mp);
-
-       return error;
 }
 
 /*