Commit 0da2d105 authored by Dorothea Ehrl's avatar Dorothea Ehrl Committed by Greg Kroah-Hartman
Browse files

staging/qlge: remove braces in conditional statement



This patch fixes "WARNING: braces {} are not necessary for single
statement blocks" and "WARNING: braces {} are not necessary for any arm
of this statement" by checkpatch.pl.

Signed-off-by: default avatarDorothea Ehrl <dorothea.ehrl@fau.de>
Co-developed-by: default avatarVanessa Hack <vanessa.hack@fau.de>
Signed-off-by: default avatarVanessa Hack <vanessa.hack@fau.de>
Link: https://lore.kernel.org/r/20191127123052.16424-4-dorothea.ehrl@fau.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2d060684
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -4101,11 +4101,11 @@ static int qlge_change_mtu(struct net_device *ndev, int new_mtu)
	struct ql_adapter *qdev = netdev_priv(ndev);
	int status;

	if (ndev->mtu == 1500 && new_mtu == 9000) {
	if (ndev->mtu == 1500 && new_mtu == 9000)
		netif_err(qdev, ifup, qdev->ndev, "Changing to jumbo MTU.\n");
	} else if (ndev->mtu == 9000 && new_mtu == 1500) {
	else if (ndev->mtu == 9000 && new_mtu == 1500)
		netif_err(qdev, ifup, qdev->ndev, "Changing to normal MTU.\n");
	} else
	else
		return -EINVAL;

	queue_delayed_work(qdev->workqueue,
@@ -4113,9 +4113,8 @@ static int qlge_change_mtu(struct net_device *ndev, int new_mtu)

	ndev->mtu = new_mtu;

	if (!netif_running(qdev->ndev)) {
	if (!netif_running(qdev->ndev))
		return 0;
	}

	status = ql_change_rx_buffers(qdev);
	if (status) {