]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: qlge: qlge_ethtool.c: remove an unneeded variable
authorPayal Kshirsagar <payalskshirsagar1234@gmail.com>
Thu, 12 Mar 2020 19:06:24 +0000 (00:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 13:00:45 +0000 (14:00 +0100)
Remove unneeded temporary local variable, cleanup suggested by coccinelle.

Signed-off-by: Payal Kshirsagar <payalskshirsagar1234@gmail.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200312190624.24167-5-payalskshirsagar1234@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_ethtool.c

index 592ca7edfc446c52dc2a4e64baef6ebdd833df2f..441ac08d14d21bc4a3f7d7af370527b32fafa532 100644 (file)
@@ -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)