Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Dorothea Ehrl <dorothea.ehrl@fau.de>
Co-developed-by: Vanessa Hack <vanessa.hack@fau.de>
Signed-off-by: Vanessa Hack <vanessa.hack@fau.de>
Link: https://lore.kernel.org/r/20191127123052.16424-4-dorothea.ehrl@fau.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dorothea Ehrl and committed by
Greg Kroah-Hartman
0da2d105 2d060684

+4 -5
+4 -5
drivers/staging/qlge/qlge_main.c
··· 4101 4101 struct ql_adapter *qdev = netdev_priv(ndev); 4102 4102 int status; 4103 4103 4104 - if (ndev->mtu == 1500 && new_mtu == 9000) { 4104 + if (ndev->mtu == 1500 && new_mtu == 9000) 4105 4105 netif_err(qdev, ifup, qdev->ndev, "Changing to jumbo MTU.\n"); 4106 - } else if (ndev->mtu == 9000 && new_mtu == 1500) { 4106 + else if (ndev->mtu == 9000 && new_mtu == 1500) 4107 4107 netif_err(qdev, ifup, qdev->ndev, "Changing to normal MTU.\n"); 4108 - } else 4108 + else 4109 4109 return -EINVAL; 4110 4110 4111 4111 queue_delayed_work(qdev->workqueue, ··· 4113 4113 4114 4114 ndev->mtu = new_mtu; 4115 4115 4116 - if (!netif_running(qdev->ndev)) { 4116 + if (!netif_running(qdev->ndev)) 4117 4117 return 0; 4118 - } 4119 4118 4120 4119 status = ql_change_rx_buffers(qdev); 4121 4120 if (status) {