projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcd3f98
)
RDMA/rxe: remove the redundant variable
author
Zhu Yanjun
<zyjzyj2000@gmail.com>
Wed, 15 Sep 2021 01:24:56 +0000
(21:24 -0400)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Tue, 14 Sep 2021 19:22:48 +0000
(16:22 -0300)
The variable port is not necessary. So remove it.
Link:
https://lore.kernel.org/r/20210915012456.476728-1-yanjun.zhu@intel.com
Signed-off-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/rxe/rxe_verbs.c
b/drivers/infiniband/sw/rxe/rxe_verbs.c
index 267b5a9c345d0864a3334b6f51202ea9833255d7..586ef102986e36a0d92318dc45bafd463a84e918 100644
(file)
--- a/
drivers/infiniband/sw/rxe/rxe_verbs.c
+++ b/
drivers/infiniband/sw/rxe/rxe_verbs.c
@@
-29,13
+29,10
@@
static int rxe_query_port(struct ib_device *dev,
u32 port_num, struct ib_port_attr *attr)
{
struct rxe_dev *rxe = to_rdev(dev);
- struct rxe_port *port;
int rc;
- port = &rxe->port;
-
/* *attr being zeroed by the caller, avoid zeroing it here */
- *attr =
port->
attr;
+ *attr =
rxe->port.
attr;
mutex_lock(&rxe->usdev_lock);
rc = ib_get_eth_speed(dev, port_num, &attr->active_speed,