Skip to content

Commit

Permalink
Code quality: Fixing code quality issues reported by lgtm
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Aug 25, 2020
1 parent 11d43b4 commit a75a108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/x86/boot/multiboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int mbi_get_memory_range(paddr_t pa, addr_range_t *r) {
_start = 0x0;
_end = multiboot_info->mem_lower * KB(1);

if (pa >= _start && pa < _end)
if (pa < _end)
goto found;

_start = MB(1);
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static void dump_segment_regs(const struct cpu_regs *regs) {
"CS=0x%04lx DS=0x%04lx SS=0x%04lx\n"
"ES=0x%04lx FS=0x%04lx GS=0x%04lx\n"
"EXCEPTION:\n"
"CS=0x%04lx SS=0x%04lx\n\n",
"CS=0x%04x SS=0x%04x\n\n",
read_cs(), read_ds(), read_ss(), read_es(), read_fs(), read_gs(), regs->cs,
regs->ss);
}
Expand Down

0 comments on commit a75a108

Please sign in to comment.