Skip to content

Commit

Permalink
arch: sparc: Fix 10.4 violations
Browse files Browse the repository at this point in the history
Both operands of an operator in which the usual arithmetic
conversions are performed shall have the same essential
type category.

Signed-off-by: Flavio Ceolin <[email protected]>
  • Loading branch information
Flavio Ceolin authored and nashif committed Apr 10, 2021
1 parent 49f0c74 commit bfd9d00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/sparc/core/fatal.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,11 @@ static void print_backtrace(const z_arch_esf_t *esf)
const uint32_t pc = s->in[7];
const uint32_t sp = s->in[6];

if (sp == 0 && pc == 0) {
if (sp == 0U && pc == 0U) {
break;
}
LOG_ERR(" #%-2d %08x %08x", i, pc, sp);
if (sp == 0 || sp & 7) {
if (sp == 0U || sp & 7U) {
break;
}
s = (const struct savearea *) sp;
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc/core/irq_manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void z_sparc_enter_irq(uint32_t irl)
_current_cpu->nested++;

#ifdef CONFIG_IRQ_OFFLOAD
if (irl != 141) {
if (irl != 141U) {
irl = z_sparc_int_get_source(irl);
ite = &_sw_isr_table[irl];
ite->isr(ite->arg);
Expand Down

0 comments on commit bfd9d00

Please sign in to comment.