diff options
-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 | /* |