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:
parent
06c3519db4
commit
cb72de197c
@ -180,7 +180,6 @@ scheme_write(lba_t end)
|
|||||||
{
|
{
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
end = image_get_size();
|
|
||||||
error = scheme->write(end, bootcode);
|
error = scheme->write(end, bootcode);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user