diff --git a/sbin/gpt/remove.c b/sbin/gpt/remove.c index 9949d0043d1e..d1f388e8a23c 100644 --- a/sbin/gpt/remove.c +++ b/sbin/gpt/remove.c @@ -64,7 +64,7 @@ rem(int fd) map_t *m; struct gpt_hdr *hdr; struct gpt_ent *ent; - unsigned int i, removed; + unsigned int i; gpt = map_find(MAP_TYPE_PRI_GPT_HDR); if (gpt == NULL) { @@ -87,8 +87,6 @@ rem(int fd) return; } - removed = 0; - /* Remove all matching entries in the map. */ for (m = map_first(); m != NULL; m = m->map_next) { if (m->map_type != MAP_TYPE_GPT_PART || m->map_index < 1) @@ -133,11 +131,7 @@ rem(int fd) gpt_write(fd, tpg); printf("%sp%u removed\n", device_name, m->map_index); - - removed++; } - - warnx("%s: %d partition(s) removed", device_name, removed); } int