Skip to content

Commit bfd9d00

Browse files
Flavio Ceolinnashif
authored andcommitted
arch: sparc: Fix 10.4 violations
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]>
1 parent 49f0c74 commit bfd9d00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/sparc/core/fatal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ static void print_backtrace(const z_arch_esf_t *esf)
179179
const uint32_t pc = s->in[7];
180180
const uint32_t sp = s->in[6];
181181

182-
if (sp == 0 && pc == 0) {
182+
if (sp == 0U && pc == 0U) {
183183
break;
184184
}
185185
LOG_ERR(" #%-2d %08x %08x", i, pc, sp);
186-
if (sp == 0 || sp & 7) {
186+
if (sp == 0U || sp & 7U) {
187187
break;
188188
}
189189
s = (const struct savearea *) sp;

arch/sparc/core/irq_manage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void z_sparc_enter_irq(uint32_t irl)
3131
_current_cpu->nested++;
3232

3333
#ifdef CONFIG_IRQ_OFFLOAD
34-
if (irl != 141) {
34+
if (irl != 141U) {
3535
irl = z_sparc_int_get_source(irl);
3636
ite = &_sw_isr_table[irl];
3737
ite->isr(ite->arg);

0 commit comments

Comments
 (0)