Print this page
10133 smatch fixes for usr/src/cmd/fs.d

@@ -22,10 +22,14 @@
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
  * smbfs umount
  */
 
 #include <stdio.h>
 #include <stdlib.h>

@@ -177,8 +181,8 @@
                                 fsfreemnttab(res);
                         res = fsdupmnttab(&mnt);
                 }
         }
 
-        fclose(fp);
+        (void) fclose(fp);
         return (res);
 }