Skip to content

Commit

Permalink
nfc: fix PVS warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gornekich committed Oct 24, 2023
1 parent 8cd34a1 commit df36498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/nfc/protocols/mf_desfire/mf_desfire_poller_i.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ MfDesfireError mf_desfire_poller_async_read_file_value(
return error;
}

MfDesfireError mf_desfire_poller_async_read_file_records(
// TODO FL-3639: this function is equal to mf_desfire_poller_async_read_file_data()
MfDesfireError mf_desfire_poller_async_read_file_records( //-V524
MfDesfirePoller* instance,
MfDesfireFileId id,
uint32_t offset,
Expand Down
2 changes: 1 addition & 1 deletion lib/nfc/protocols/mf_ultralight/mf_ultralight.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ bool mf_ultralight_load(MfUltralightData* data, FlipperFormat* ff, uint32_t vers
uint32_t pages_total = 0;
if(!flipper_format_read_uint32(ff, MF_ULTRALIGHT_PAGES_TOTAL_KEY, &pages_total, 1)) break;
uint32_t pages_read = 0;
if(data_format_version < mf_ultralight_data_format_version) {
if(data_format_version < mf_ultralight_data_format_version) { //-V547
pages_read = pages_total;
} else {
if(!flipper_format_read_uint32(ff, MF_ULTRALIGHT_PAGES_READ_KEY, &pages_read, 1))
Expand Down

0 comments on commit df36498

Please sign in to comment.