lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sun, 10 Nov 2013 19:58:35 +0100
From:	Michal Nazarewicz <>
To:	Roland Dreier <>,
	Sean Hefty <>,
	Hal Rosenstock <>
Cc:	Andrew Morton <>,
	"David S. Miller" <>,,,
	Michal Nazarewicz <>
Subject: [PATCH] drivers: infiniband: remove unused argument and minor dead code

From: Michal Nazarewicz <>

The dev variable is never assigned after being initialised.

Signed-off-by: Michal Nazarewicz <>
 drivers/infiniband/core/cma.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index da9611d..33f114f 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1452,7 +1452,6 @@ static int iw_conn_req_handler(struct iw_cm_id *cm_id,
 	struct rdma_cm_id *new_cm_id;
 	struct rdma_id_private *listen_id, *conn_id;
-	struct net_device *dev = NULL;
 	struct rdma_cm_event event;
 	int ret;
 	struct ib_device_attr attr;
@@ -1530,8 +1529,6 @@ static int iw_conn_req_handler(struct iw_cm_id *cm_id,
-	if (dev)
-		dev_put(dev);
 	return ret;

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists