From: Jérôme Pouiller <jerome.pouiller@xxxxxxxxxx> Braces are not necessary for single statement blocks Signed-off-by: Jérôme Pouiller <jerome.pouiller@xxxxxxxxxx> --- drivers/staging/wfx/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.34.1