Skip to content

Commit e3e74b2

Browse files
Matthew MacovskyKyle Kearney
authored andcommitted
Remove redundant QSPI erase alignment
1 parent 05bc949 commit e3e74b2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,9 +1457,7 @@ qspi_status_t QSPIFBlockDevice::_qspi_send_erase_command(qspi_inst_t erase_inst,
14571457
}
14581458

14591459
// Send erase command to driver
1460-
status = _qspi.command_transfer(erase_inst,
1461-
(((int) addr) & 0x00FFF000), // Align addr to 4096
1462-
NULL, 0, NULL, 0); // Do not transmit or receive
1460+
status = _qspi.command_transfer(erase_inst, (int) addr, NULL, 0, NULL, 0);
14631461

14641462
if (QSPI_STATUS_OK != status) {
14651463
tr_error("QSPI Erase failed");

0 commit comments

Comments
 (0)