diff mbox series

[06/31] staging: wfx: remove unnecessary braces

Message ID 20220113085524.1110708-7-Jerome.Pouiller@silabs.com
State New
Headers show
Series [01/31] staging: wfx: fix Makefile and Kconfig licenses | expand

Commit Message

Jérôme Pouiller Jan. 13, 2022, 8:54 a.m. UTC
From: Jérôme Pouiller <jerome.pouiller@silabs.com>

Braces are not necessary for single statement blocks

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
---
 drivers/staging/wfx/main.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c
index 858d778cc589..ddc95ea16b6d 100644
--- a/drivers/staging/wfx/main.c
+++ b/drivers/staging/wfx/main.c
@@ -438,12 +438,11 @@  int wfx_probe(struct wfx_dev *wdev)
 		eth_zero_addr(wdev->addresses[i].addr);
 		err = of_get_mac_address(wdev->dev->of_node,
 					 wdev->addresses[i].addr);
-		if (!err) {
+		if (!err)
 			wdev->addresses[i].addr[ETH_ALEN - 1] += i;
-		} else {
+		else
 			ether_addr_copy(wdev->addresses[i].addr,
 					wdev->hw_caps.mac_addr[i]);
-		}
 		if (!is_valid_ether_addr(wdev->addresses[i].addr)) {
 			dev_warn(wdev->dev, "using random MAC address\n");
 			eth_random_addr(wdev->addresses[i].addr);