aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2019-10-23 08:42:39 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-10-28 13:28:24 -0300
commitf9e66db143162a72bb41369fadddcd65fef8664f (patch)
treea5e1d3e2ee109294312cb740f7d4567b0d416d1d /drivers
parentRDMA/hns: Prevent undefined behavior in hns_roce_set_user_sq_size() (diff)
downloadlinux-dev-f9e66db143162a72bb41369fadddcd65fef8664f.tar.xz
linux-dev-f9e66db143162a72bb41369fadddcd65fef8664f.zip
RDMA/hns: Delete BITS_PER_BYTE redefinition
HNS redefined available in bits.h define and didn't use it, we can safely delete it. Link: https://lore.kernel.org/r/20191023054239.31648-1-leon@kernel.org Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_device.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
index cbd75e466417..940761310430 100644
--- a/drivers/infiniband/hw/hns/hns_roce_device.h
+++ b/drivers/infiniband/hw/hns/hns_roce_device.h
@@ -53,8 +53,6 @@
#define BA_BYTE_LEN 8
-#define BITS_PER_BYTE 8
-
/* Hardware specification only for v1 engine */
#define HNS_ROCE_MIN_CQE_NUM 0x40
#define HNS_ROCE_MIN_WQE_NUM 0x20