svn commit: r347220 - head/stand/common

Toomas Soome tsoome at FreeBSD.org
Tue May 7 08:14:32 UTC 2019


Author: tsoome
Date: Tue May  7 08:14:30 2019
New Revision: 347220
URL: https://svnweb.freebsd.org/changeset/base/347220

Log:
  loader: bcache code does not need to check argument for free()

Modified:
  head/stand/common/bcache.c

Modified: head/stand/common/bcache.c
==============================================================================
--- head/stand/common/bcache.c	Tue May  7 07:46:40 2019	(r347219)
+++ head/stand/common/bcache.c	Tue May  7 08:14:30 2019	(r347220)
@@ -426,10 +426,8 @@ static void
 bcache_free_instance(struct bcache *bc)
 {
     if (bc != NULL) {
-	if (bc->bcache_ctl)
-	    free(bc->bcache_ctl);
-	if (bc->bcache_data)
-	    free(bc->bcache_data);
+	free(bc->bcache_ctl);
+	free(bc->bcache_data);
 	free(bc);
     }
 }


More information about the svn-src-head mailing list