In scheme_write(), don't overwrite the end parameter with the

return value of image_get_size(). As it so happens, the only
caller of scheme_write() passes exactly that.
This commit is contained in:
marcel 2015-02-22 01:01:02 +00:00
parent 06c3519db4
commit cb72de197c

View File

@ -180,7 +180,6 @@ scheme_write(lba_t end)
{
int error;
end = image_get_size();
error = scheme->write(end, bootcode);
return (error);
}