-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mostly improving readability of target_firmware #103
base: master
Are you sure you want to change the base?
Conversation
@@ -1590,7 +1610,8 @@ static void ath_draintxq_tgt(void *Context, A_UINT16 Command, | |||
} | |||
|
|||
static void ath_aborttx_dma_tgt(void *Context, A_UINT16 Command, | |||
A_UINT16 SeqNo, A_UINT8 *data, a_int32_t datalen) | |||
A_UINT16 SeqNo, A_UINT8 *data, | |||
a_int32_t datalen) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please no style fixes for now.
@@ -223,15 +223,15 @@ static a_uint32_t ath_pkt_duration(struct ath_softc_tgt *sc, | |||
|
|||
static void ath_dma_map(struct ath_softc_tgt *sc, struct ath_tx_buf *bf) | |||
{ | |||
adf_nbuf_t skb = bf->bf_skb; | |||
adf_nbuf_t skb; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be OK, please make in separate patch. And please provide proper patch format with short log and Signed-of-by: ...
@@ -884,14 +884,14 @@ static void ath_tgt_txq_add_ucast(struct ath_softc_tgt *sc, struct ath_tx_buf *b | |||
{ | |||
struct ath_hal *ah = sc->sc_ah; | |||
struct ath_txq *txq; | |||
HAL_STATUS status; | |||
/*HAL_STATUS status;*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable is not used (that is what is reported by cppcheck
and it still compiles).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, commenting out is opposite of clean code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please drop style changes. Removing dead code is ok.
volatile a_int32_t txe_val; | ||
|
||
adf_os_assert(bf); | ||
|
||
txq = bf->bf_txq; | ||
|
||
status = ah->ah_procTxDesc(ah, bf->bf_lastds); | ||
ah->ah_procTxDesc(ah, bf->bf_lastds); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this line still usefull?
Signed-off-by: Nicola Spanti (RyDroid) <[email protected]>
I kept some minor style changes. Do you want that I remove all of them too? |
No description provided.