[PATCH 3/3] platform/x86: dell-laptop: braces {} are not necessary for single statement blocks
From: Dhaval Shah
Date: Wed Dec 13 2017 - 03:14:50 EST
Resolved braces {} are not necessary for single statement blocks
checkpatch warnings. Issue found by checkpatch.
Signed-off-by: Dhaval Shah <dhaval.shah@xxxxxxxxxxxxxxx>
---
drivers/platform/x86/dell-laptop.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c
index bf4e73a02b39..21361bfa2b5c 100644
--- a/drivers/platform/x86/dell-laptop.c
+++ b/drivers/platform/x86/dell-laptop.c
@@ -493,9 +493,8 @@ static void dell_rfkill_query(struct rfkill *rfkill, void *data)
ret = dell_send_request(CLASS_INFO, SELECT_RFKILL);
status = buffer->output[1];
- if (ret != 0 || !(status & BIT(0))) {
+ if (ret != 0 || !(status & BIT(0)))
return;
- }
dell_set_arguments(0, 0x2, 0, 0);
ret = dell_send_request(CLASS_INFO, SELECT_RFKILL);
--
2.11.0