From: Roel Kluin Date: Tue, 3 Nov 2009 22:48:58 +0000 (+0100) Subject: Staging: dst: Fix parentheses X-Git-Tag: v2.6.33-rc1~313^2~43 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6c8e49dd41a568a1e31e8020ba423a1ade8393b1;p=~shefty%2Frdma-dev.git 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 Acked-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dst/state.c b/drivers/staging/dst/state.c index d057e52f3b6..bccbd6dbb17 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) {