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
29eac8d790
commit
b5380f2a09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279126
@ -180,7 +180,6 @@ scheme_write(lba_t end)
|
||||
{
|
||||
int error;
|
||||
|
||||
end = image_get_size();
|
||||
error = scheme->write(end, bootcode);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user