Fix unused variable warning in mlx5_ib_devx.c
With clang 15, the following -Werror warning is produced: sys/dev/mlx5/mlx5_ib/mlx5_ib_devx.c:1926:6: error: variable 'num_alloc_xa_entries' set but not used [-Werror,-Wunused-but-set-variable] int num_alloc_xa_entries = 0; ^ The 'num_alloc_xa_entries' variable appears to have been a debugging aid that has never been used for anything, so remove it. MFC after: 3 days
This commit is contained in:
parent
6332ad8673
commit
3a0b243282
@ -1923,7 +1923,6 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_SUBSCRIBE_EVENT)(
|
|||||||
int redirect_fd;
|
int redirect_fd;
|
||||||
bool use_eventfd = false;
|
bool use_eventfd = false;
|
||||||
int num_events;
|
int num_events;
|
||||||
int num_alloc_xa_entries = 0;
|
|
||||||
u16 obj_type = 0;
|
u16 obj_type = 0;
|
||||||
u64 cookie = 0;
|
u64 cookie = 0;
|
||||||
u32 obj_id = 0;
|
u32 obj_id = 0;
|
||||||
@ -2005,7 +2004,6 @@ static int UVERBS_HANDLER(MLX5_IB_METHOD_DEVX_SUBSCRIBE_EVENT)(
|
|||||||
if (err)
|
if (err)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
num_alloc_xa_entries++;
|
|
||||||
event_sub = kzalloc(sizeof(*event_sub), GFP_KERNEL);
|
event_sub = kzalloc(sizeof(*event_sub), GFP_KERNEL);
|
||||||
if (!event_sub)
|
if (!event_sub)
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
Reference in New Issue
Block a user