diff options
author | Parav Pandit <parav@mellanox.com> | 2017-11-14 15:52:04 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2017-12-19 01:37:08 +0300 |
commit | b0dd0d335364a2a748a63413ca4812c9398bf2ae (patch) | |
tree | 013fa3451cb38a46a451d8c7bf9c73e28b432d67 /drivers/infiniband/core/verbs.c | |
parent | 981b5a2384b7c9b521fb8d54ffb89259f754846e (diff) | |
download | linux-b0dd0d335364a2a748a63413ca4812c9398bf2ae.tar.xz |
IB/core: Avoid unnecessary type cast
Type cast from void to struct find_gid_index_context is not needed.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/verbs.c')
-rw-r--r-- | drivers/infiniband/core/verbs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index 75ebd74f8bbd..2d2e0aabccc7 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c @@ -421,8 +421,7 @@ static bool find_gid_index(const union ib_gid *gid, const struct ib_gid_attr *gid_attr, void *context) { - struct find_gid_index_context *ctx = - (struct find_gid_index_context *)context; + struct find_gid_index_context *ctx = context; if (ctx->gid_type != gid_attr->gid_type) return false; |