Skip to content

Commit

Permalink
Remove volatile since Atomic operations are included
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jun 20, 2023
1 parent 8aa3659 commit 4f00e06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lwrb/src/lwrb/lwrb.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,7 @@ lwrb_get_linear_block_read_address(const lwrb_t* buff) {
*/
size_t
lwrb_get_linear_block_read_length(const lwrb_t* buff) {
size_t len;
volatile size_t w, r;
size_t len, w, r;

if (!BUF_IS_VALID(buff)) {
return 0;
Expand Down Expand Up @@ -471,8 +470,7 @@ lwrb_get_linear_block_write_address(const lwrb_t* buff) {
*/
size_t
lwrb_get_linear_block_write_length(const lwrb_t* buff) {
size_t len;
volatile size_t w, r;
size_t len, w, r;

if (!BUF_IS_VALID(buff)) {
return 0;
Expand Down

0 comments on commit 4f00e06

Please sign in to comment.