projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
981b5a2
)
IB/core: Avoid unnecessary type cast
author
Parav Pandit
<
[email protected]
>
Tue, 14 Nov 2017 12:52:04 +0000
(14:52 +0200)
committer
Jason Gunthorpe
<
[email protected]
>
Mon, 18 Dec 2017 22:37:08 +0000
(15:37 -0700)
Type cast from void to struct find_gid_index_context is not needed.
Signed-off-by: Parav Pandit <
[email protected]
>
Reviewed-by: Daniel Jurgens <
[email protected]
>
Signed-off-by: Leon Romanovsky <
[email protected]
>
Signed-off-by: Jason Gunthorpe <
[email protected]
>
drivers/infiniband/core/verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/verbs.c
b/drivers/infiniband/core/verbs.c
index 75ebd74f8bbdfa531f5fed6510deb416c7dddb25..2d2e0aabccc7255ab690fb39020df18508230799 100644
(file)
--- 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;