netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Phonet:fix build problem
@ 2009-03-20 11:58 Alexander Beregalov
  2009-03-21 23:59 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Alexander Beregalov @ 2009-03-20 11:58 UTC (permalink / raw)
  To: netdev, linux-kernel

net/phonet/pep.c: In function 'pipe_rcv_status':
net/phonet/pep.c:262: error: lvalue required as left operand of assignment

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---

 net/phonet/pep.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/phonet/pep.c b/net/phonet/pep.c
index 8ad2b53..9a1aefa 100644
--- a/net/phonet/pep.c
+++ b/net/phonet/pep.c
@@ -259,7 +259,8 @@ static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
 	case PN_PEP_IND_ID_MCFC_GRANT_CREDITS:
 		if (pn->tx_fc != PN_MULTI_CREDIT_FLOW_CONTROL)
 			break;
-		atomic_add(wake = hdr->data[4], &pn->tx_credits);
+		wake = hdr->data[4];
+		atomic_add(wake, &pn->tx_credits);
 		break;
 
 	default:

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-31  3:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-20 11:58 [PATCH] Phonet:fix build problem Alexander Beregalov
2009-03-21 23:59 ` David Miller
2009-03-22  0:19   ` Alexander Beregalov
2009-03-22  3:58     ` James Bottomley
2009-03-22 16:06       ` Kyle McMartin
2009-03-31  2:41         ` Kyle McMartin
2009-03-31  3:06           ` James Bottomley
2009-03-31  3:07             ` Kyle McMartin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).