net/irda: fixed style issues in irttp
Applied error fixes suggested by checpatch.pl Signed-off-by: Dragos Foianu <dragos.foianu@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ecb2cf1a6b
commit
aafee33423
@ -639,8 +639,7 @@ int irttp_data_request(struct tsap_cb *self, struct sk_buff *skb)
|
|||||||
*/
|
*/
|
||||||
if ((self->tx_max_sdu_size != 0) &&
|
if ((self->tx_max_sdu_size != 0) &&
|
||||||
(self->tx_max_sdu_size != TTP_SAR_UNBOUND) &&
|
(self->tx_max_sdu_size != TTP_SAR_UNBOUND) &&
|
||||||
(skb->len > self->tx_max_sdu_size))
|
(skb->len > self->tx_max_sdu_size)) {
|
||||||
{
|
|
||||||
IRDA_ERROR("%s: SAR enabled, but data is larger than TxMaxSduSize!\n",
|
IRDA_ERROR("%s: SAR enabled, but data is larger than TxMaxSduSize!\n",
|
||||||
__func__);
|
__func__);
|
||||||
ret = -EMSGSIZE;
|
ret = -EMSGSIZE;
|
||||||
@ -733,8 +732,7 @@ static void irttp_run_tx_queue(struct tsap_cb *self)
|
|||||||
* poll us through irttp_flow_indication() - Jean II */
|
* poll us through irttp_flow_indication() - Jean II */
|
||||||
while ((self->send_credit > 0) &&
|
while ((self->send_credit > 0) &&
|
||||||
(!irlmp_lap_tx_queue_full(self->lsap)) &&
|
(!irlmp_lap_tx_queue_full(self->lsap)) &&
|
||||||
(skb = skb_dequeue(&self->tx_queue)))
|
(skb = skb_dequeue(&self->tx_queue))) {
|
||||||
{
|
|
||||||
/*
|
/*
|
||||||
* Since we can transmit and receive frames concurrently,
|
* Since we can transmit and receive frames concurrently,
|
||||||
* the code below is a critical region and we must assure that
|
* the code below is a critical region and we must assure that
|
||||||
@ -798,8 +796,7 @@ static void irttp_run_tx_queue(struct tsap_cb *self)
|
|||||||
* where we can spend a bit of time doing stuff. - Jean II */
|
* where we can spend a bit of time doing stuff. - Jean II */
|
||||||
if ((self->tx_sdu_busy) &&
|
if ((self->tx_sdu_busy) &&
|
||||||
(skb_queue_len(&self->tx_queue) < TTP_TX_LOW_THRESHOLD) &&
|
(skb_queue_len(&self->tx_queue) < TTP_TX_LOW_THRESHOLD) &&
|
||||||
(!self->close_pend))
|
(!self->close_pend)) {
|
||||||
{
|
|
||||||
if (self->notify.flow_indication)
|
if (self->notify.flow_indication)
|
||||||
self->notify.flow_indication(self->notify.instance,
|
self->notify.flow_indication(self->notify.instance,
|
||||||
self, FLOW_START);
|
self, FLOW_START);
|
||||||
@ -1738,8 +1735,7 @@ static void irttp_run_rx_queue(struct tsap_cb *self)
|
|||||||
* This is the last fragment, so time to reassemble!
|
* This is the last fragment, so time to reassemble!
|
||||||
*/
|
*/
|
||||||
if ((self->rx_sdu_size <= self->rx_max_sdu_size) ||
|
if ((self->rx_sdu_size <= self->rx_max_sdu_size) ||
|
||||||
(self->rx_max_sdu_size == TTP_SAR_UNBOUND))
|
(self->rx_max_sdu_size == TTP_SAR_UNBOUND)) {
|
||||||
{
|
|
||||||
/*
|
/*
|
||||||
* A little optimizing. Only queue the fragment if
|
* A little optimizing. Only queue the fragment if
|
||||||
* there are other fragments. Since if this is the
|
* there are other fragments. Since if this is the
|
||||||
|
Loading…
Reference in New Issue
Block a user