Commit a825aa56 authored by Payal Kshirsagar's avatar Payal Kshirsagar Committed by Greg Kroah-Hartman
Browse files

staging: qlge: qlge_ethtool.c: remove an unneeded variable



Remove unneeded temporary local variable, cleanup suggested by coccinelle.

Signed-off-by: default avatarPayal Kshirsagar <payalskshirsagar1234@gmail.com>
Reviewed-by: default avatarStefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200312190624.24167-5-payalskshirsagar1234@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 69fe462f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -692,7 +692,6 @@ static int ql_set_pauseparam(struct net_device *netdev,
			     struct ethtool_pauseparam *pause)
{
	struct ql_adapter *qdev = netdev_priv(netdev);
	int status = 0;

	if ((pause->rx_pause) && (pause->tx_pause))
		qdev->link_config |= CFG_PAUSE_STD;
@@ -701,8 +700,7 @@ static int ql_set_pauseparam(struct net_device *netdev,
	else
		return -EINVAL;

	status = ql_mb_set_port_cfg(qdev);
	return status;
	return ql_mb_set_port_cfg(qdev);
}

static u32 ql_get_msglevel(struct net_device *ndev)