The register keyword is redundant with modern compilers.
Signed-off-by: Stephen Hemminger <[email protected]>
---
drivers/net/mlx5/mlx5_mr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/mlx5/mlx5_mr.c b/drivers/net/mlx5/mlx5_mr.c
index 1d1bcb5fe028..b8fb6c0b9f0d 100644
--- a/drivers/net/mlx5/mlx5_mr.c
+++ b/drivers/net/mlx5/mlx5_mr.c
@@ -104,7 +104,7 @@ mr_btree_lookup(struct mlx5_mr_btree *bt, uint16_t *idx,
uintptr_t addr)
lkp_tbl[0].lkey == UINT32_MAX));
/* Binary search. */
do {
- register uint16_t delta = n >> 1;
+ uint16_t delta = n >> 1;
if (addr < lkp_tbl[base + delta].start) {
n = delta;
--
2.18.0