Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Mostly improving readability of target_firmware #103

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Oct 4, 2016

No description provided.

@@ -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)
Copy link
Contributor

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;
Copy link
Contributor

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;*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not OK

Copy link
Author

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).

Copy link
Contributor

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.

Copy link
Contributor

@olerem olerem left a 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);
Copy link
Author

@ghost ghost Oct 20, 2016

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]>
@ghost
Copy link
Author

ghost commented Oct 20, 2016

I kept some minor style changes. Do you want that I remove all of them too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant