riscv: Use __maybe_unused instead of #ifdefs around variable declarations

This allows to simplify the code and make it more readable.

Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
This commit is contained in:
Alexandre Ghiti 2021-07-23 15:01:26 +02:00 • committed by Palmer Dabbelt
commit 6f3e5fd241
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889