aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-11-03 17:48:58 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 15:23:18 -0500
commit6c8e49dd41a568a1e31e8020ba423a1ade8393b1 (patch)
tree254a11c9604337a292bb35f6d5e910708e41b4a2
parenta5c330fe8b2f1e17133190e0b297a710c5a4de04 (diff)
Staging: dst: Fix parentheses
`|' has a higher precedence than `?' so since MSG_WAITALL is defined 0x100, MSG_MORE was always written to the msg_flag. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/dst/state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dst/state.c b/drivers/staging/dst/state.c
index d057e52f3b64..bccbd6dbb172 100644
--- a/drivers/staging/dst/state.c
+++ b/drivers/staging/dst/state.c
@@ -121,7 +121,7 @@ int dst_data_send_header(struct socket *sock,
121 msg.msg_namelen = 0; 121 msg.msg_namelen = 0;
122 msg.msg_control = NULL; 122 msg.msg_control = NULL;
123 msg.msg_controllen = 0; 123 msg.msg_controllen = 0;
124 msg.msg_flags = MSG_WAITALL | (more)?MSG_MORE:0; 124 msg.msg_flags = MSG_WAITALL | (more ? MSG_MORE : 0);
125 125
126 err = kernel_sendmsg(sock, &msg, &iov, 1, iov.iov_len); 126 err = kernel_sendmsg(sock, &msg, &iov, 1, iov.iov_len);
127 if (err != size) { 127 if (err != size) {