Skip to content

Commit

Permalink
Minor style tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jserv committed Feb 12, 2022
1 parent 376252b commit a872c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ int vm_load_initrd(vm_t *v, const char *initrd_path)
for (;;) {
if (addr < 0x100000)
return throw_err("Not enough memory for initrd");
else if (addr < (RAM_SIZE - datasz))
if (addr < (RAM_SIZE - datasz))
break;
addr -= 0x100000;
}
Expand Down

0 comments on commit a872c4b

Please sign in to comment.