Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aafee334 authored by Dragos Foianu's avatar Dragos Foianu Committed by David S. Miller
Browse files

net/irda: fixed style issues in irttp



Applied error fixes suggested by checpatch.pl

Signed-off-by: default avatarDragos Foianu <dragos.foianu@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ecb2cf1a
Loading
Loading
Loading
Loading
+23 −27
Original line number Diff line number Diff line
@@ -639,8 +639,7 @@ int irttp_data_request(struct tsap_cb *self, struct sk_buff *skb)
	 */
	if ((self->tx_max_sdu_size != 0) &&
	    (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",
			   __func__);
		ret = -EMSGSIZE;
@@ -733,8 +732,7 @@ static void irttp_run_tx_queue(struct tsap_cb *self)
	 * poll us through irttp_flow_indication() - Jean II */
	while ((self->send_credit > 0) &&
	       (!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,
		 *  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 */
	if ((self->tx_sdu_busy) &&
	    (skb_queue_len(&self->tx_queue) < TTP_TX_LOW_THRESHOLD) &&
	    (!self->close_pend))
	{
	    (!self->close_pend)) {
		if (self->notify.flow_indication)
			self->notify.flow_indication(self->notify.instance,
						     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!
		 */
		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
			 * there are other fragments. Since if this is the