diff options
author | Ralph Campbell <ralph.campbell@qlogic.com> | 2007-12-21 19:47:04 -0500 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-01-25 17:15:35 -0500 |
commit | d65708f3a766116662ff9bac81088d52a49901f4 (patch) | |
tree | 91b89bd66a0c032600e64b8de83e33ae38212f8e /drivers/infiniband/hw/ipath | |
parent | cc65edcf0c174eff4367cfbc594a2f33c0d477fa (diff) |
IB/ipath: Cleanup ipath_get_egrbuf()
Remove an unused parameter and fix up the comment.
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_driver.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index 6a48442a8d59..5a5fbdf66ac2 100644 --- a/drivers/infiniband/hw/ipath/ipath_driver.c +++ b/drivers/infiniband/hw/ipath/ipath_driver.c | |||
@@ -1009,12 +1009,10 @@ static void get_rhf_errstring(u32 err, char *msg, size_t len) | |||
1009 | * ipath_get_egrbuf - get an eager buffer | 1009 | * ipath_get_egrbuf - get an eager buffer |
1010 | * @dd: the infinipath device | 1010 | * @dd: the infinipath device |
1011 | * @bufnum: the eager buffer to get | 1011 | * @bufnum: the eager buffer to get |
1012 | * @err: unused | ||
1013 | * | 1012 | * |
1014 | * must only be called if ipath_pd[port] is known to be allocated | 1013 | * must only be called if ipath_pd[port] is known to be allocated |
1015 | */ | 1014 | */ |
1016 | static inline void *ipath_get_egrbuf(struct ipath_devdata *dd, u32 bufnum, | 1015 | static inline void *ipath_get_egrbuf(struct ipath_devdata *dd, u32 bufnum) |
1017 | int err) | ||
1018 | { | 1016 | { |
1019 | return dd->ipath_port0_skbinfo ? | 1017 | return dd->ipath_port0_skbinfo ? |
1020 | (void *) dd->ipath_port0_skbinfo[bufnum].skb->data : NULL; | 1018 | (void *) dd->ipath_port0_skbinfo[bufnum].skb->data : NULL; |
@@ -1162,7 +1160,7 @@ reloop: | |||
1162 | etail = ipath_hdrget_index((__le32 *) rc); | 1160 | etail = ipath_hdrget_index((__le32 *) rc); |
1163 | if (tlen > sizeof(*hdr) || | 1161 | if (tlen > sizeof(*hdr) || |
1164 | etype == RCVHQ_RCV_TYPE_NON_KD) | 1162 | etype == RCVHQ_RCV_TYPE_NON_KD) |
1165 | ebuf = ipath_get_egrbuf(dd, etail, 0); | 1163 | ebuf = ipath_get_egrbuf(dd, etail); |
1166 | } | 1164 | } |
1167 | 1165 | ||
1168 | /* | 1166 | /* |