diff options
author | Alexander Chiang <achiang@hp.com> | 2010-02-02 14:08:50 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-02-24 13:23:46 -0500 |
commit | d3f2c67f2d10675f45b0d9257269420e9f59aa1a (patch) | |
tree | 64e342d079db7b4663cc40e47ec745074c38118d /drivers/infiniband | |
parent | 8698d3feccda66fcb52748e7c7690bd1003f7849 (diff) |
IB/umad: Clean whitespace
Clean errors as shown when 'let c_space_errors=1' is set in vim.
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/user_mad.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 57818aea9967..02d360cfc2f7 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c | |||
@@ -487,8 +487,8 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf, | |||
487 | ah_attr.ah_flags = IB_AH_GRH; | 487 | ah_attr.ah_flags = IB_AH_GRH; |
488 | memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16); | 488 | memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16); |
489 | ah_attr.grh.sgid_index = packet->mad.hdr.gid_index; | 489 | ah_attr.grh.sgid_index = packet->mad.hdr.gid_index; |
490 | ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label); | 490 | ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label); |
491 | ah_attr.grh.hop_limit = packet->mad.hdr.hop_limit; | 491 | ah_attr.grh.hop_limit = packet->mad.hdr.hop_limit; |
492 | ah_attr.grh.traffic_class = packet->mad.hdr.traffic_class; | 492 | ah_attr.grh.traffic_class = packet->mad.hdr.traffic_class; |
493 | } | 493 | } |
494 | 494 | ||
@@ -519,9 +519,9 @@ static ssize_t ib_umad_write(struct file *filp, const char __user *buf, | |||
519 | goto err_ah; | 519 | goto err_ah; |
520 | } | 520 | } |
521 | 521 | ||
522 | packet->msg->ah = ah; | 522 | packet->msg->ah = ah; |
523 | packet->msg->timeout_ms = packet->mad.hdr.timeout_ms; | 523 | packet->msg->timeout_ms = packet->mad.hdr.timeout_ms; |
524 | packet->msg->retries = packet->mad.hdr.retries; | 524 | packet->msg->retries = packet->mad.hdr.retries; |
525 | packet->msg->context[0] = packet; | 525 | packet->msg->context[0] = packet; |
526 | 526 | ||
527 | /* Copy MAD header. Any RMPP header is already in place. */ | 527 | /* 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 | } | 856 | } |
857 | 857 | ||
858 | static const struct file_operations umad_fops = { | 858 | static const struct file_operations umad_fops = { |
859 | .owner = THIS_MODULE, | 859 | .owner = THIS_MODULE, |
860 | .read = ib_umad_read, | 860 | .read = ib_umad_read, |
861 | .write = ib_umad_write, | 861 | .write = ib_umad_write, |
862 | .poll = ib_umad_poll, | 862 | .poll = ib_umad_poll, |
863 | .unlocked_ioctl = ib_umad_ioctl, | 863 | .unlocked_ioctl = ib_umad_ioctl, |
864 | #ifdef CONFIG_COMPAT | 864 | #ifdef CONFIG_COMPAT |
865 | .compat_ioctl = ib_umad_compat_ioctl, | 865 | .compat_ioctl = ib_umad_compat_ioctl, |
866 | #endif | 866 | #endif |
867 | .open = ib_umad_open, | 867 | .open = ib_umad_open, |
868 | .release = ib_umad_close | 868 | .release = ib_umad_close |
869 | }; | 869 | }; |
870 | 870 | ||
871 | static int ib_umad_sm_open(struct inode *inode, struct file *filp) | 871 | 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 | } | 930 | } |
931 | 931 | ||
932 | static const struct file_operations umad_sm_fops = { | 932 | static const struct file_operations umad_sm_fops = { |
933 | .owner = THIS_MODULE, | 933 | .owner = THIS_MODULE, |
934 | .open = ib_umad_sm_open, | 934 | .open = ib_umad_sm_open, |
935 | .release = ib_umad_sm_close | 935 | .release = ib_umad_sm_close |
936 | }; | 936 | }; |
937 | 937 | ||