From patchwork Wed Feb 8 01:19:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 54127 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3188958wrn; Tue, 7 Feb 2023 17:36:30 -0800 (PST) X-Google-Smtp-Source: AK7set/x+lm8q3Q5DqFjbeKzGkTmBloP6kQ5+9+PTNcANEsOka+xJjAjTOmB6IaA8IBvq1+7ssOW X-Received: by 2002:a17:906:581b:b0:88e:d435:3fd6 with SMTP id m27-20020a170906581b00b0088ed4353fd6mr6431311ejq.63.1675820190048; Tue, 07 Feb 2023 17:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675820190; cv=none; d=google.com; s=arc-20160816; b=u8EvrF4Aog90+g8EhEdeeNduTDGai9DcsMhU+2LP2O5iboD2k65U1Vd1E2FeozMgEb iOlql+Oxm7F5XMKMcQcU4riNrQjf23BqUAD3FtLp6d1iqUYT92zdQfVsM9FmbtpXbD34 mvJ6YVZB+AmPtYQGUPgKsL1w6UTMg/eAW+PlYafJw/ygvYE5qnOObOenohzltnAcMT/8 QLqTKQ9HsSrFoTVYLmFKVZdQOjR1sNVG9sZZTq9XnPJ73v6bekCaXuYVuPy6XjwhSN4P 1QjtntNN/a58TwdHjUzKtAjFjEpzMmDBtAMlQLm838nFeC2U4tm5mtWnOrzcCxI1dzsV GA8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=s0rRUDJtdqxEIYjxKZd2Iw1XKawPOWt0K62YNkapoIo=; b=Ld8SI4yDG2lYqFs6vZ/Epri7a8E/CSYVLl7OGqekvkIeiawv7S13NC+if9s+ZVpI+d jvZUbaHdp8kUUpcfKcFFC2eALVYm/LbPYBVpDWmpBUndciqAgKVLNEkEKOTjBNASdBgp I3tJ8ugTP+59U/zhOjYGC8PSKxhHxln6IYwg9EL35BYvjfAmMOGD5Q72RbfjV4/yi013 Y9arFfyHBvzMsNxXMHh/SwmdK0xSbsX8Q5pcfY50dMLaMc9/KEeIq484gMCmWbvDkWuO if0xw+OR3xXHBvG4cKcVhtBe25kmJmlytIX0Gvez77AYVhm0tEWWMbO48OLVnY8LM6nh SaMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ef13-20020a05640228cd00b00469b79303b6si17582126edb.195.2023.02.07.17.36.07; Tue, 07 Feb 2023 17:36:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbjBHBT0 (ORCPT + 99 others); Tue, 7 Feb 2023 20:19:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjBHBTY (ORCPT ); Tue, 7 Feb 2023 20:19:24 -0500 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2869241B47; Tue, 7 Feb 2023 17:19:22 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R431e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0Vb90Ra5_1675819160; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0Vb90Ra5_1675819160) by smtp.aliyun-inc.com; Wed, 08 Feb 2023 09:19:21 +0800 From: Yang Li To: jikos@kernel.org Cc: benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] HID: core: clean up some inconsistent indentings Date: Wed, 8 Feb 2023 09:19:19 +0800 Message-Id: <20230208011919.92807-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757224831756764001?= X-GMAIL-MSGID: =?utf-8?q?1757224831756764001?= ./drivers/hid/hid-core.c:2727:2-17: code aligned with following code on line 2732 Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3980 Signed-off-by: Yang Li --- 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 842afc88a949..f080f132b36c 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -2729,10 +2729,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