IB/mlx5: remove redundant assignment of mdev
authorColin Ian King <colin.king@canonical.com>
Tue, 9 Jan 2018 15:55:43 +0000 (15:55 +0000)
committerDoug Ledford <dledford@redhat.com>
Wed, 10 Jan 2018 21:52:52 +0000 (16:52 -0500)
commitda005f9fab3af121a8a9ef17ff7e06ddbc8edf11
tree1015176a960f778af4564c436059bc72e410b8ad
parent5793b46521553774d66653993cfdc132846bb23d
IB/mlx5: remove redundant assignment of mdev

The initial assignment to mdev is redundant as mdev is re-assigned
later and the first assigned value is never read. Remove this
redundant assignment.

Cleans up clang warning:
drivers/infiniband/hw/mlx5/main.c:359:24: warning: Value stored
to 'mdev' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c