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

Commit b629a6f6 authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Greg Kroah-Hartman
Browse files

staging: rdma: amso1100: Remove unnecessary variables



Remove unnecessary variable 'err' from functions c2_reject() and
c2_service_destroy() since it can be replaced by a single line of
code instead.

Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a85994d5
Loading
Loading
Loading
Loading
+2 −8
Original line number Original line Diff line number Diff line
@@ -620,12 +620,9 @@ static int c2_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *iw_param)


static int c2_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
static int c2_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
{
{
	int err;

	pr_debug("%s:%u\n", __func__, __LINE__);
	pr_debug("%s:%u\n", __func__, __LINE__);


	err = c2_llp_reject(cm_id, pdata, pdata_len);
	return c2_llp_reject(cm_id, pdata, pdata_len);
	return err;
}
}


static int c2_service_create(struct iw_cm_id *cm_id, int backlog)
static int c2_service_create(struct iw_cm_id *cm_id, int backlog)
@@ -642,12 +639,9 @@ static int c2_service_create(struct iw_cm_id *cm_id, int backlog)


static int c2_service_destroy(struct iw_cm_id *cm_id)
static int c2_service_destroy(struct iw_cm_id *cm_id)
{
{
	int err;
	pr_debug("%s:%u\n", __func__, __LINE__);
	pr_debug("%s:%u\n", __func__, __LINE__);


	err = c2_llp_service_destroy(cm_id);
	return c2_llp_service_destroy(cm_id);

	return err;
}
}


static int c2_pseudo_up(struct net_device *netdev)
static int c2_pseudo_up(struct net_device *netdev)