Skip to content

Commit 0ca1a61

Browse files
Keyur HariyaKeyur Hariya
authored andcommitted
Remove the redundant input parameter
1 parent 1f0809a commit 0ca1a61

File tree

1 file changed

+6
-6
lines changed
  • targets/TARGET_Maxim/TARGET_MAX32620C/mxc

1 file changed

+6
-6
lines changed

targets/TARGET_Maxim/TARGET_MAX32620C/mxc/spis.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
#include "spis.h"
4747

4848
/**
49-
* @ingroup spis
49+
* @ingroup spis
5050
* @{
51-
*/
51+
*/
5252
/* **** Definitions **** */
5353
#define SPIS_FIFO_BUFFER 6
5454

@@ -119,7 +119,7 @@ int SPIS_Shutdown(mxc_spis_regs_t *spis)
119119
}
120120

121121
// Clear system level configurations
122-
if ((err = SYS_SPIS_Shutdown(spis)) != E_NO_ERROR) {
122+
if ((err = SYS_SPIS_Shutdown()) != E_NO_ERROR) {
123123
return err;
124124
}
125125

@@ -162,7 +162,7 @@ int SPIS_Trans(mxc_spis_regs_t *spis, spis_req_t *req)
162162

163163
// Start the transaction, keep calling the handler until complete
164164
spis->intfl = (MXC_F_SPIS_INTFL_SS_DEASSERTED | MXC_F_SPIS_INTFL_TX_UNDERFLOW);
165-
while(SPIS_TransHandler(spis, req, spis_num) & (MXC_F_SPIS_INTEN_RX_FIFO_AF |
165+
while(SPIS_TransHandler(spis, req, spis_num) & (MXC_F_SPIS_INTEN_RX_FIFO_AF |
166166
MXC_F_SPIS_INTEN_TX_FIFO_AE)) {
167167

168168
if((req->tx_data != NULL) && (spis->intfl & MXC_F_SPIS_INTFL_TX_UNDERFLOW)) {
@@ -174,7 +174,7 @@ int SPIS_Trans(mxc_spis_regs_t *spis, spis_req_t *req)
174174
}
175175

176176
if((req->deass) && (spis->intfl & MXC_F_SPIS_INTFL_SS_DEASSERTED)) {
177-
if(((req->rx_data != NULL) && ((req->read_num + SPIS_NumReadAvail(spis)) < req->len)) ||
177+
if(((req->rx_data != NULL) && ((req->read_num + SPIS_NumReadAvail(spis)) < req->len)) ||
178178
((req->tx_data != NULL) && (req->write_num < req->len))) {
179179

180180
return E_COMM_ERR;
@@ -306,7 +306,7 @@ void SPIS_Handler(mxc_spis_regs_t *spis)
306306
if((flags & MXC_F_SPIS_INTFL_SS_DEASSERTED) && (req != NULL) &&
307307
(req->deass)) {
308308

309-
if(((req->rx_data != NULL) && ((req->read_num + SPIS_NumReadAvail(spis)) < req->len)) ||
309+
if(((req->rx_data != NULL) && ((req->read_num + SPIS_NumReadAvail(spis)) < req->len)) ||
310310
((req->tx_data != NULL) && (req->write_num < req->len))) {
311311

312312
// Unlock this SPIS

0 commit comments

Comments
 (0)