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);
     }
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to