Skip to content

Cleanup: remove unnecessary const variable#1399

Open
IClementI wants to merge 1 commit intoFreeRTOS:mainfrom
IClementI:fix_port_c
Open

Cleanup: remove unnecessary const variable#1399
IClementI wants to merge 1 commit intoFreeRTOS:mainfrom
IClementI:fix_port_c

Conversation

@IClementI
Copy link
Copy Markdown
Contributor

Cleanup: remove unnecessary const variable in RISC-V port

Description

This change removes the intermediate constant variable ullMachineTimerCompareRegisterBase, which was redundantly storing configMTIMECMP_BASE_ADDRESS.

Test Steps

Build the FreeRTOS RISC-V port.
Tested on my hardware. (While the change should be hardware-independent, I cannot fully guaranteed it)

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant