[PATCH] net/e1000: Fix single statement blocks warning
From: Tree Davies
Date: Sun Jun 11 2023 - 17:41:31 EST
This patch fixes checkpatch.pl warning of type:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Tree Davies <tdavies@xxxxxxxxxxxxxxx>
---
drivers/net/ethernet/intel/e1000/e1000_main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c
index da6e303ad99b..accc2bd7c35c 100644
--- a/drivers/net/ethernet/intel/e1000/e1000_main.c
+++ b/drivers/net/ethernet/intel/e1000/e1000_main.c
@@ -259,9 +259,8 @@ static int e1000_request_irq(struct e1000_adapter *adapter)
err = request_irq(adapter->pdev->irq, handler, irq_flags, netdev->name,
netdev);
- if (err) {
+ if (err)
e_err(probe, "Unable to allocate interrupt Error: %d\n", err);
- }
return err;
}
--
2.30.2
--luNyGatCr/pDLYsq--