summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-09-16 03:49:30 +0300
committerDavid S. Miller <davem@davemloft.net>2016-09-16 03:49:30 +0300
commit09f090d811feda2285eecb4ec52f3f127da7e684 (patch)
treed95302cbabb87e60d4cb455f26e50e4cf247bbbc /drivers/infiniband/hw/cxgb4/iw_cxgb4.h
parent2679d040412df847d390a3a8f0f224a7c91f7fae (diff)
parent6e3b6fc201fe16d3944e2b293e7f47a72f4a56c1 (diff)
downloadlinux-09f090d811feda2285eecb4ec52f3f127da7e684.tar.xz
Merge branch 'libcxgb-next'
Varun Prakash says: ==================== iw_cxgb4,cxgbit: remove duplicate code This patch series removes duplicate code from iw_cxgb4 and cxgbit by adding common function definitions in libcxgb. Please review. ==================== Reviewed-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/iw_cxgb4.h')
-rw-r--r--drivers/infiniband/hw/cxgb4/iw_cxgb4.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
index aa47e0ae80bc..6a9bef1f09a8 100644
--- a/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
+++ b/drivers/infiniband/hw/cxgb4/iw_cxgb4.h
@@ -881,15 +881,6 @@ static inline struct c4iw_listen_ep *to_listen_ep(struct iw_cm_id *cm_id)
return cm_id->provider_data;
}
-static inline int compute_wscale(int win)
-{
- int wscale = 0;
-
- while (wscale < 14 && (65535<<wscale) < win)
- wscale++;
- return wscale;
-}
-
static inline int ocqp_supported(const struct cxgb4_lld_info *infop)
{
#if defined(__i386__) || defined(__x86_64__) || defined(CONFIG_PPC64)