Fix bracket placements

pull/7783/head
Senthil Ramakrishnan 2017-12-01 15:20:45 -06:00 committed by Maciej Bocianski
parent d9036865d8
commit 04ec07c017
1 changed files with 3 additions and 6 deletions

View File

@ -128,8 +128,7 @@ qspi_status_t QSPI::write(unsigned int address, const char *tx_buffer, size_t *t
{
qspi_status_t ret_status = QSPI_STATUS_ERROR;
if(_initialized)
{
if(_initialized) {
if( (tx_length != NULL) && (tx_buffer != NULL) ) {
if(*tx_length != 0) {
lock();
@ -177,8 +176,7 @@ qspi_status_t QSPI::write(unsigned int instruction, unsigned int address, unsign
{
qspi_status_t ret_status = QSPI_STATUS_ERROR;
if(_initialized)
{
if(_initialized) {
if( (tx_length != NULL) && (tx_buffer != NULL) ) {
if(*tx_length != 0) {
lock();
@ -202,8 +200,7 @@ qspi_status_t QSPI::command_transfer(unsigned int instruction, const char *tx_bu
{
qspi_status_t ret_status = QSPI_STATUS_ERROR;
if(_initialized)
{
if(_initialized) {
lock();
if(true == _acquire()) {
qspi_command_t *qspi_cmd = _build_qspi_command(instruction, -1, -1); //We just need the command