[PATCH] hid: hid-core: Adjust indentation in hid_add_device

From: Junyan Ye
Date: Sun Apr 16 2023 - 03:43:11 EST


Smatch reported:
drivers/hid/hid-core.c:2750 hid_add_device() warn: inconsistent indenting

There is an extra space before the if statement and its braces.

Fix this warning by removing the whitespace to conform to the coding style.

Fixes: 3c86726cfe38 ("HID: make .raw_request mandatory")
Signed-off-by: Junyan Ye <yejunyan@xxxxxxxxxxx>
Reviewed-by: Dongliang Mu <dzm91@xxxxxxxxxxx>
---
drivers/hid/hid-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 22623eb4f72f..80fc2eed6383 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -2747,10 +2747,10 @@ int hid_add_device(struct hid_device *hdev)
/*
* Check for the mandatory transport channel.
*/
- if (!hdev->ll_driver->raw_request) {
+ if (!hdev->ll_driver->raw_request) {
hid_err(hdev, "transport driver missing .raw_request()\n");
return -EINVAL;
- }
+ }

/*
* Read the device report descriptor once and use as template
--
2.25.1