diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-11-03 23:48:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 12:23:18 -0800 |
commit | 6c8e49dd41a568a1e31e8020ba423a1ade8393b1 (patch) | |
tree | 254a11c9604337a292bb35f6d5e910708e41b4a2 /drivers/staging/dst | |
parent | a5c330fe8b2f1e17133190e0b297a710c5a4de04 (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>
Diffstat (limited to 'drivers/staging/dst')
-rw-r--r-- | drivers/staging/dst/state.c | 2 |
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, msg.msg_namelen = 0; msg.msg_control = NULL; msg.msg_controllen = 0; - msg.msg_flags = MSG_WAITALL | (more)?MSG_MORE:0; + msg.msg_flags = MSG_WAITALL | (more ? MSG_MORE : 0); err = kernel_sendmsg(sock, &msg, &iov, 1, iov.iov_len); if (err != size) { |