This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch releases/13.1 in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit c31eb81531c2b02c27401083dcbfc1397b3eb0db Author: Daniel P. Carvalho <[email protected]> AuthorDate: Sun Oct 4 01:04:32 2026 -0300 arch/mips/jz4780: fix nxstyle issues in jz4780_decodeirq.c. Add the missing blank lines after declarations. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Daniel P. Carvalho <[email protected]> --- arch/mips/src/jz4780/jz4780_decodeirq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/src/jz4780/jz4780_decodeirq.c b/arch/mips/src/jz4780/jz4780_decodeirq.c index 69affc37311..4b26ceaf7c9 100644 --- a/arch/mips/src/jz4780/jz4780_decodeirq.c +++ b/arch/mips/src/jz4780/jz4780_decodeirq.c @@ -82,6 +82,7 @@ uint32_t *jz4780_decodeirq(uint32_t *regs) unsigned int source1 = getreg32(ICPR1); int irq = -1; + if (source != 0) { irq = 31 - __builtin_clz(source); @@ -112,6 +113,7 @@ uint32_t *jz4780_decodeirq(uint32_t *regs) else if (irq == JZ4780_IRQ_TCU2) { uint32_t tfcr = getreg32(TFR) & 0xdf; + if (!tfcr) { irq = -1; @@ -119,6 +121,7 @@ uint32_t *jz4780_decodeirq(uint32_t *regs) else { int n = 31 - __builtin_clz(tfcr); + putreg32(TFCR_FFCL(n), TFCR); irq = IRQ_TMR0 + n; }
