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

Loading…
Cancel
Save