From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F3C8C43457 for ; Wed, 14 Oct 2020 08:35:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 064492222C for ; Wed, 14 Oct 2020 08:35:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729556AbgJNIfZ (ORCPT ); Wed, 14 Oct 2020 04:35:25 -0400 Received: from smtprelay0206.hostedemail.com ([216.40.44.206]:42414 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728925AbgJNIfX (ORCPT ); Wed, 14 Oct 2020 04:35:23 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 97FA018029123; Wed, 14 Oct 2020 08:35:22 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: fold78_54147122720a X-Filterd-Recvd-Size: 1856 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf07.hostedemail.com (Postfix) with ESMTPA; Wed, 14 Oct 2020 08:35:21 +0000 (UTC) Message-ID: Subject: Re: [PATCH 0/2] module: some refactoring in module_sig_check() From: Joe Perches To: Sergey Shtylyov , Jessica Yu , linux-kernel@vger.kernel.org Date: Wed, 14 Oct 2020 01:35:19 -0700 In-Reply-To: References: <789a4e5c-8efd-bb1c-86e2-eed8b2b7b0af@omprussia.ru> <3897a8ce5760affa304952c2d30c1266589407f2.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-10-14 at 11:18 +0300, Sergey Shtylyov wrote: > Hello! > > On 14.10.2020 1:44, Joe Perches wrote: > > > > Here are 2 patches against the 'modules-next' branch of Jessica Yu's 'linux.git' repo. > > > I'm doing some little refactoring in module_sig_check()... > > > > > > [1/2] module: merge repetitive strings in module_sig_check() > > > [2/2] module: unindent comments in module_sig_check() > > > > I think this code is rather cryptic and could be made clearer. > > > > How about: > > --- > > kernel/module.c | 51 ++++++++++++++++++++++++++------------------------- > > 1 file changed, 26 insertions(+), 25 deletions(-) > > Looks good. Do you want to post complete patch(es)? :-) I don't like posting actual patches on top of other people. It's a complete and compilable diff, it's just unsigned. If you want a Signed-off-by: here's one: Signed-off-by: Joe Perches