Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2926639pxf; Sun, 4 Apr 2021 20:40:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPX4rBNGNZ4TT8V4IsEhzDs+qYugWsclqZbncujvvAYHlKAAQfPlSqrHumlIwjFC+eLTns X-Received: by 2002:a17:906:c08f:: with SMTP id f15mr26363070ejz.318.1617594004820; Sun, 04 Apr 2021 20:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617594004; cv=none; d=google.com; s=arc-20160816; b=fRma5iJQtnr0r1dzpiOVF2B1R86qd/jFPF6SW4yGWQ0rcT6bCYfnGQrdMiQE5KmqfI p5w6hl6zPG+bm8Vt7tdd2QO/JoMJtQZuVheFh6sz8bEcs05rBx6WUvN8mmnKfYSVONR+ dit5YBZnKZlYqd/VrhK21L43Q650TnkdP2MhPXfVyeQ4XN0RG6Cb8m1U/1NQJrQbgE2T JAhp7fWRqOq7vfc8Xgf5hZsKFbiSodpqdW9ugWSRzbkAuQJATLLn5NAI0vP/aTnPK+d3 0eWvkV6fJ5YjIqSkkudAFs7PE9n0GQuVNKa4YwnXee3ElrMwI8z+6bRi4zBU+RVfnGEJ 5y3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=nqX0GUEpQTVw5PwyKS8WylmAzjXNRuDD0coPVHIbVIA=; b=yRWQwcg7iK+fVZRjBILj19JC/MxtmIMUtm6rfh2uKQTWf1E6wQoj29/YS+iFQOhd7E vqCxtf7wh2/3jSGA3pxMa5ivzb+wIuvCh86LvEP06OA/3PYcXnnbOZfqugNfNkEMqqeZ V/cnqa/RiM3bVw3iROGkUac3D5C0dhVEl1Ub8+3uxVf/94TCKkHIjTuq9XlepxQyMm6U lZrXLA6v7wgIfIvYrlCR8CaamoSH0gZtPPtjhrmERZglmGNsmnhR/E2dm0LCgIrVAI34 HnvFqr0AMYBhpv7S/AQ0zLm09vRmU38ifAsz8zPRQfhfFM2zt1evnKptIHI2sFa+kHmO SU4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc19si4059797edb.336.2021.04.04.20.39.41; Sun, 04 Apr 2021 20:40:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231968AbhDEDhO (ORCPT + 99 others); Sun, 4 Apr 2021 23:37:14 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15596 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230334AbhDEDhK (ORCPT ); Sun, 4 Apr 2021 23:37:10 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FDGW20DhNz1BFWR; Mon, 5 Apr 2021 11:34:54 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Mon, 5 Apr 2021 11:36:56 +0800 From: Xiaofei Tan To: , CC: , , Xiaofei Tan Subject: [PATCH 02/10] tty/sysrq: Fix issues of code indent should use tabs Date: Mon, 5 Apr 2021 11:34:14 +0800 Message-ID: <1617593662-25900-3-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1617593662-25900-1-git-send-email-tanxiaofei@huawei.com> References: <1617593662-25900-1-git-send-email-tanxiaofei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix issues of code indent should use tabs, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/sysrq.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c index 0372ed7..1ece100 100644 --- a/drivers/tty/sysrq.c +++ b/drivers/tty/sysrq.c @@ -548,22 +548,22 @@ static int sysrq_key_table_key2index(int key) */ static const struct sysrq_key_op *__sysrq_get_key_op(int key) { - const struct sysrq_key_op *op_p = NULL; - int i; + const struct sysrq_key_op *op_p = NULL; + int i; i = sysrq_key_table_key2index(key); if (i != -1) - op_p = sysrq_key_table[i]; + op_p = sysrq_key_table[i]; - return op_p; + return op_p; } static void __sysrq_put_key_op(int key, const struct sysrq_key_op *op_p) { - int i = sysrq_key_table_key2index(key); + int i = sysrq_key_table_key2index(key); - if (i != -1) - sysrq_key_table[i] = op_p; + if (i != -1) + sysrq_key_table[i] = op_p; } void __handle_sysrq(int key, bool check_mask) @@ -587,8 +587,8 @@ void __handle_sysrq(int key, bool check_mask) orig_log_level = console_loglevel; console_loglevel = CONSOLE_LOGLEVEL_DEFAULT; - op_p = __sysrq_get_key_op(key); - if (op_p) { + op_p = __sysrq_get_key_op(key); + if (op_p) { /* * Should we check for enabled operations (/proc/sysrq-trigger * should not) and is the invoked operation enabled? @@ -637,13 +637,13 @@ static int sysrq_reset_downtime_ms; /* Simple translation table for the SysRq keys */ static const unsigned char sysrq_xlate[KEY_CNT] = - "\000\0331234567890-=\177\t" /* 0x00 - 0x0f */ - "qwertyuiop[]\r\000as" /* 0x10 - 0x1f */ - "dfghjkl;'`\000\\zxcv" /* 0x20 - 0x2f */ - "bnm,./\000*\000 \000\201\202\203\204\205" /* 0x30 - 0x3f */ - "\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */ - "230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */ - "\r\000/"; /* 0x60 - 0x6f */ + "\000\0331234567890-=\177\t" /* 0x00 - 0x0f */ + "qwertyuiop[]\r\000as" /* 0x10 - 0x1f */ + "dfghjkl;'`\000\\zxcv" /* 0x20 - 0x2f */ + "bnm,./\000*\000 \000\201\202\203\204\205" /* 0x30 - 0x3f */ + "\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */ + "230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */ + "\r\000/"; /* 0x60 - 0x6f */ struct sysrq_state { struct input_handle handle; @@ -1108,7 +1108,7 @@ int sysrq_toggle_support(int enable_mask) EXPORT_SYMBOL_GPL(sysrq_toggle_support); static int __sysrq_swap_key_ops(int key, const struct sysrq_key_op *insert_op_p, - const struct sysrq_key_op *remove_op_p) + const struct sysrq_key_op *remove_op_p) { int retval; -- 2.8.1