Browse Source

Remove dummy references to cfg in protocol_tx.c

Clara Hobbs 7 years ago
parent
commit
434b4d6884
1 changed files with 0 additions and 6 deletions
  1. 0
    6
      lib/src/protocol_tx.c

+ 0
- 6
lib/src/protocol_tx.c View File

@@ -51,7 +51,6 @@ enum protocol_tx_state {
51 51
  */
52 52
 static enum protocol_tx_state protocol_tx_phy_reset(struct pdb_config *cfg)
53 53
 {
54
-    (void) cfg;
55 54
     /* Reset the PHY */
56 55
     fusb_reset();
57 56
 
@@ -119,7 +118,6 @@ static enum protocol_tx_state protocol_tx_reset(struct pdb_config *cfg)
119 118
  */
120 119
 static enum protocol_tx_state protocol_tx_construct_message(struct pdb_config *cfg)
121 120
 {
122
-    (void) cfg;
123 121
     /* Make sure nobody wants us to reset */
124 122
     eventmask_t evt = chEvtGetAndClearEvents(PDB_EVT_PRLTX_RESET | PDB_EVT_PRLTX_DISCARD);
125 123
 
@@ -176,7 +174,6 @@ static enum protocol_tx_state protocol_tx_wait_response(struct pdb_config *cfg)
176 174
  */
177 175
 static enum protocol_tx_state protocol_tx_match_messageid(struct pdb_config *cfg)
178 176
 {
179
-    (void) cfg;
180 177
     union pd_msg goodcrc;
181 178
 
182 179
     /* Read the GoodCRC */
@@ -194,7 +191,6 @@ static enum protocol_tx_state protocol_tx_match_messageid(struct pdb_config *cfg
194 191
 
195 192
 static enum protocol_tx_state protocol_tx_transmission_error(struct pdb_config *cfg)
196 193
 {
197
-    (void) cfg;
198 194
     /* Increment MessageIDCounter */
199 195
     cfg->prl._tx_messageidcounter = (cfg->prl._tx_messageidcounter + 1) % 8;
200 196
 
@@ -207,7 +203,6 @@ static enum protocol_tx_state protocol_tx_transmission_error(struct pdb_config *
207 203
 
208 204
 static enum protocol_tx_state protocol_tx_message_sent(struct pdb_config *cfg)
209 205
 {
210
-    (void) cfg;
211 206
     /* Increment MessageIDCounter */
212 207
     cfg->prl._tx_messageidcounter = (cfg->prl._tx_messageidcounter + 1) % 8;
213 208
 
@@ -220,7 +215,6 @@ static enum protocol_tx_state protocol_tx_message_sent(struct pdb_config *cfg)
220 215
 
221 216
 static enum protocol_tx_state protocol_tx_discard_message(struct pdb_config *cfg)
222 217
 {
223
-    (void) cfg;
224 218
     /* If we were working on sending a message, increment MessageIDCounter */
225 219
     if (cfg->prl._tx_message != NULL) {
226 220
         cfg->prl._tx_messageidcounter = (cfg->prl._tx_messageidcounter + 1) % 8;

Loading…
Cancel
Save