Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelBoerlin authored and BareosBot committed Aug 10, 2023
1 parent e3fb178 commit 1978ed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/stored/reserve.cc
Expand Up @@ -649,11 +649,11 @@ static int ReserveDevice(ReserveContext& rctx)
"chk AccessMode append=%d access_mode=%d\n",
rctx.append, rctx.device_resource->access_mode);
if (rctx.append && rctx.device_resource->access_mode == IODirection::READ) {
// Trying to write but access mode is readonly
// Trying to write but access mode is readonly
return -1;
} else if (!rctx.append && rctx.device_resource->access_mode == IODirection::WRITE) {
// Trying to read but access mode is writeonly
return -1;
return -1;
}

// Make sure device_resource exists -- i.e. we can stat() it
Expand Down

0 comments on commit 1978ed5

Please sign in to comment.