Commit d3f2c67f authored by Alexander Chiang's avatar Alexander Chiang Committed by Roland Dreier

IB/umad: Clean whitespace

Clean errors as shown when 'let c_space_errors=1' is set in vim.
Signed-off-by: default avatarAlex Chiang <achiang@hp.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 8698d3fe
...@@ -487,8 +487,8 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf, ...@@ -487,8 +487,8 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
ah_attr.ah_flags = IB_AH_GRH; ah_attr.ah_flags = IB_AH_GRH;
memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16); memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16);
ah_attr.grh.sgid_index = packet->mad.hdr.gid_index; ah_attr.grh.sgid_index = packet->mad.hdr.gid_index;
ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label); ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label);
ah_attr.grh.hop_limit = packet->mad.hdr.hop_limit; ah_attr.grh.hop_limit = packet->mad.hdr.hop_limit;
ah_attr.grh.traffic_class = packet->mad.hdr.traffic_class; ah_attr.grh.traffic_class = packet->mad.hdr.traffic_class;
} }
...@@ -519,9 +519,9 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf, ...@@ -519,9 +519,9 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf,
goto err_ah; goto err_ah;
} }
packet->msg->ah = ah; packet->msg->ah = ah;
packet->msg->timeout_ms = packet->mad.hdr.timeout_ms; packet->msg->timeout_ms = packet->mad.hdr.timeout_ms;
packet->msg->retries = packet->mad.hdr.retries; packet->msg->retries = packet->mad.hdr.retries;
packet->msg->context[0] = packet; packet->msg->context[0] = packet;
/* Copy MAD header. Any RMPP header is already in place. */ /* Copy MAD header. Any RMPP header is already in place. */
...@@ -856,16 +856,16 @@ static int ib_umad_close(struct inode *inode, struct file *filp) ...@@ -856,16 +856,16 @@ static int ib_umad_close(struct inode *inode, struct file *filp)
} }
static const struct file_operations umad_fops = { static const struct file_operations umad_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.read = ib_umad_read, .read = ib_umad_read,
.write = ib_umad_write, .write = ib_umad_write,
.poll = ib_umad_poll, .poll = ib_umad_poll,
.unlocked_ioctl = ib_umad_ioctl, .unlocked_ioctl = ib_umad_ioctl,
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
.compat_ioctl = ib_umad_compat_ioctl, .compat_ioctl = ib_umad_compat_ioctl,
#endif #endif
.open = ib_umad_open, .open = ib_umad_open,
.release = ib_umad_close .release = ib_umad_close
}; };
static int ib_umad_sm_open(struct inode *inode, struct file *filp) static int ib_umad_sm_open(struct inode *inode, struct file *filp)
...@@ -930,8 +930,8 @@ static int ib_umad_sm_close(struct inode *inode, struct file *filp) ...@@ -930,8 +930,8 @@ static int ib_umad_sm_close(struct inode *inode, struct file *filp)
} }
static const struct file_operations umad_sm_fops = { static const struct file_operations umad_sm_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.open = ib_umad_sm_open, .open = ib_umad_sm_open,
.release = ib_umad_sm_close .release = ib_umad_sm_close
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment