summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-10-20 12:30:16 -0700
committerRoland Dreier <rolandd@cisco.com>2005-10-20 12:30:16 -0700
commit2e0c512aff978a7040464e81fc9c0dfdf4639c23 (patch)
tree0b278a811609e159bcaa134099af1692cdabd3ee /drivers/infiniband
parent3910f44d79a8a4a26fcfefbf16c5b8e1a7743175 (diff)
downloadblackbird-op-linux-2e0c512aff978a7040464e81fc9c0dfdf4639c23.tar.gz
blackbird-op-linux-2e0c512aff978a7040464e81fc9c0dfdf4639c23.zip
[IB] user_mad: trivial coding style fixes
Add spaces after "sizeof" operator to match the rest of file. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/user_mad.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c
index a64d6b4dcc16..38f4bfbb7135 100644
--- a/drivers/infiniband/core/user_mad.c
+++ b/drivers/infiniband/core/user_mad.c
@@ -280,14 +280,14 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
length = count - sizeof (struct ib_user_mad);
packet = kmalloc(sizeof *packet + sizeof(struct ib_mad_hdr) +
- sizeof(struct ib_rmpp_hdr), GFP_KERNEL);
+ sizeof (struct ib_rmpp_hdr), GFP_KERNEL);
if (!packet)
return -ENOMEM;
if (copy_from_user(&packet->mad, buf,
sizeof (struct ib_user_mad) +
- sizeof(struct ib_mad_hdr) +
- sizeof(struct ib_rmpp_hdr))) {
+ sizeof (struct ib_mad_hdr) +
+ sizeof (struct ib_rmpp_hdr))) {
ret = -EFAULT;
goto err;
}
@@ -349,7 +349,7 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
}
rmpp_active = 1;
} else {
- if (length > sizeof(struct ib_mad)) {
+ if (length > sizeof (struct ib_mad)) {
ret = -EINVAL;
goto err_ah;
}
@@ -376,17 +376,17 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
if (!rmpp_active) {
/* Copy message from user into send buffer */
if (copy_from_user(packet->msg->mad,
- buf + sizeof(struct ib_user_mad), length)) {
+ buf + sizeof (struct ib_user_mad), length)) {
ret = -EFAULT;
goto err_msg;
}
} else {
- rmpp_hdr_size = sizeof(struct ib_mad_hdr) +
- sizeof(struct ib_rmpp_hdr);
+ rmpp_hdr_size = sizeof (struct ib_mad_hdr) +
+ sizeof (struct ib_rmpp_hdr);
/* Only copy MAD headers (RMPP header in place) */
memcpy(packet->msg->mad, packet->mad.data,
- sizeof(struct ib_mad_hdr));
+ sizeof (struct ib_mad_hdr));
/* Now, copy rest of message from user into send buffer */
if (copy_from_user(((struct ib_rmpp_mad *) packet->msg->mad)->data,
OpenPOWER on IntegriCloud