Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0dd0d33 authored by Parav Pandit's avatar Parav Pandit Committed by Jason Gunthorpe
Browse files

IB/core: Avoid unnecessary type cast



Type cast from void to struct find_gid_index_context is not needed.

Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
Reviewed-by: default avatarDaniel Jurgens <danielj@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 981b5a23
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;