]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9179e49ee550b1172e57ff439aecd1ff4fe7556c
tree1015176a960f778af4564c436059bc72e410b8ad
parent7b953ac8f47566461fb4b4e52f1b9c2b94e54f24
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