summaryrefslogtreecommitdiffstats
path: root/usr.bin/mkimg/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mkimg/format.c')
-rw-r--r--usr.bin/mkimg/format.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/mkimg/format.c b/usr.bin/mkimg/format.c
index 57bbd98..a21b08a 100644
--- a/usr.bin/mkimg/format.c
+++ b/usr.bin/mkimg/format.c
@@ -78,14 +78,10 @@ format_selected(void)
int
format_write(int fd)
{
- lba_t size;
int error;
if (format == NULL)
return (ENOSYS);
- size = image_get_size();
- error = format->resize(size);
- if (!error)
- error = format->write(fd);
+ error = format->write(fd);
return (error);
}
OpenPOWER on IntegriCloud