svn commit: r298672 - head/sys/geom/part

Conrad E. Meyer cem at FreeBSD.org
Tue Apr 26 22:32:34 UTC 2016


Author: cem
Date: Tue Apr 26 22:32:33 2016
New Revision: 298672
URL: https://svnweb.freebsd.org/changeset/base/298672

Log:
  g_part_bsd64: Delete duplicate/dead code
  
  RAW_PART is handled earlier in the loop.
  
  Reported by:	Coverity
  CID:		1223201
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/geom/part/g_part_bsd64.c

Modified: head/sys/geom/part/g_part_bsd64.c
==============================================================================
--- head/sys/geom/part/g_part_bsd64.c	Tue Apr 26 22:30:54 2016	(r298671)
+++ head/sys/geom/part/g_part_bsd64.c	Tue Apr 26 22:32:33 2016	(r298672)
@@ -563,8 +563,6 @@ g_part_bsd64_read(struct g_part_table *b
 		le_uuid_dec(&dlp->d_partitions[index].p_stor_uuid,
 		    &entry->stor_uuid);
 		entry->fstype = dlp->d_partitions[index].p_fstype;
-		if (index == RAW_PART)
-			baseentry->gpe_internal = 1;
 	}
 	bcopy(dlp->d_reserved0, table->d_reserved0,
 	    sizeof(table->d_reserved0));


More information about the svn-src-all mailing list