mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-10-24 04:32:05 +01:00
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:
1 parent
b0ad9e0bdd
commit
ef4520b1c6
3 files changed
+19
-19
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user