[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211210093943.57658-1-jiapeng.chong@linux.alibaba.com>
Date: Fri, 10 Dec 2021 17:39:43 +0800
From: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To: jikos@...nel.org
Cc: benjamin.tissoires@...hat.com, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] HID: clean up some inconsistent indenting
Eliminate the follow smatch warning:
drivers/hid/hid-core.c:2497 hid_add_device() warn: inconsistent
indenting.
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
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 f1aed5bbd000..04a1f3d7d8eb 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -2494,10 +2494,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.20.1.7.g153144c
Powered by blists - more mailing lists