lib: Delete redundant ulong

In `csr_read_allowed` and `csr_write_allowed` macros, has already
converted second param to `ulong`. So delete redundant `ulong`
where uses csr_read/write_allowed macros.

Signed-off-by: Zhang RunMin <runmin.zhang@ingenic.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Zhang RunMin authored and Anup Patel committed 2024-08-24 14:42:14 +05:30
1 parent b0ad9e0bdd
commit ef4520b1c6
3 files changed
+19 -19

No files matched your search

+1 -1
View File
@@ -241,7 +241,7 @@ void imsic_local_irqchip_init(void)
*/
/* If Smaia not available then do nothing */
csr_read_allowed(CSR_MTOPI, (ulong)&trap);
csr_read_allowed(CSR_MTOPI, &trap);
if (trap.cause)
return;