forked from Mirrors/opensbi
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:
@@ -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