diff mbox series

HID: clean up some inconsistent indenting

Message ID 20211210093943.57658-1-jiapeng.chong@linux.alibaba.com (mailing list archive)
State New, archived
Delegated to: Jiri Kosina
Headers show
Series HID: clean up some inconsistent indenting | expand

Commit Message

Jiapeng Chong Dec. 10, 2021, 9:39 a.m. UTC
Eliminate the follow smatch warning:

drivers/hid/hid-core.c:2497 hid_add_device() warn: inconsistent
indenting.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 drivers/hid/hid-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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