Commit d65708f3 authored by Ralph Campbell's avatar Ralph Campbell Committed by Roland Dreier

IB/ipath: Cleanup ipath_get_egrbuf()

Remove an unused parameter and fix up the comment.
Signed-off-by: default avatarRalph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent cc65edcf
...@@ -1009,12 +1009,10 @@ static void get_rhf_errstring(u32 err, char *msg, size_t len) ...@@ -1009,12 +1009,10 @@ static void get_rhf_errstring(u32 err, char *msg, size_t len)
* ipath_get_egrbuf - get an eager buffer * ipath_get_egrbuf - get an eager buffer
* @dd: the infinipath device * @dd: the infinipath device
* @bufnum: the eager buffer to get * @bufnum: the eager buffer to get
* @err: unused
* *
* must only be called if ipath_pd[port] is known to be allocated * must only be called if ipath_pd[port] is known to be allocated
*/ */
static inline void *ipath_get_egrbuf(struct ipath_devdata *dd, u32 bufnum, static inline void *ipath_get_egrbuf(struct ipath_devdata *dd, u32 bufnum)
int err)
{ {
return dd->ipath_port0_skbinfo ? return dd->ipath_port0_skbinfo ?
(void *) dd->ipath_port0_skbinfo[bufnum].skb->data : NULL; (void *) dd->ipath_port0_skbinfo[bufnum].skb->data : NULL;
...@@ -1162,7 +1160,7 @@ void ipath_kreceive(struct ipath_devdata *dd) ...@@ -1162,7 +1160,7 @@ void ipath_kreceive(struct ipath_devdata *dd)
etail = ipath_hdrget_index((__le32 *) rc); etail = ipath_hdrget_index((__le32 *) rc);
if (tlen > sizeof(*hdr) || if (tlen > sizeof(*hdr) ||
etype == RCVHQ_RCV_TYPE_NON_KD) etype == RCVHQ_RCV_TYPE_NON_KD)
ebuf = ipath_get_egrbuf(dd, etail, 0); ebuf = ipath_get_egrbuf(dd, etail);
} }
/* /*
......
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