Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4681462iob; Sun, 8 May 2022 21:48:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSXUiHZlY/R9GgFB2CzHmkjztN0ExEbYIAe/2lAALE51qpRLAReKUOVeg/0mYDw1ijVRHd X-Received: by 2002:a65:6a13:0:b0:373:14f6:5d33 with SMTP id m19-20020a656a13000000b0037314f65d33mr12071501pgu.62.1652071729743; Sun, 08 May 2022 21:48:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652071729; cv=none; d=google.com; s=arc-20160816; b=Wtx77VqATJmVGbk9gkF3YzcSEMIS4oUYZHAs5p26YMhfN/FUWVL+Bpi81RaPb2YksS sXFr5q5WdG5BHl46O5gCAUWP8Va9Zaox6vjmKrAUASuPaB4c8H8XO+l+OubR4ThCCD6j G+M9qhCE8LRnR8E0uCzMebdaaAvrl78BfVdqgrEim5FIF2e72eLl2qDGXdxCbXjHOXm7 hMYZSvbVaUeg2XNLKPxvHeZLZLYvPe/Q0X9/syx9D479Av2ATC2N9JCoJw+tTZYclMkD dbcQlJW++JvKAoQB89EOl1v/qgH7OQcLBWkZ3t6RPZjVdvSA2XU7g71XoT92feJJKEgm 3BYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=g6E1pXSuXnGJCOs9j++ophWFQwyix2hw0YWNzaJ/VKU=; b=MmTBcpqs/Kvm3W3tmYUSwoI30/iOIZxBT7bJcQMZz1hp9OVYU5TJhg6g7UH5R/Qgqi 9IJgtbU9YwO84nMOiStCD4fFAPG8XPgSuZkImeO77kRkD1UnXCN2jBJjXJpVXCQKkMOa 0L86/YhyVHI62ZmymB2uhPtvi+ZKPt6fEpv4S3oNoI5Sh0MnNquj8r7duvA5abM9I5TZ kO/Sjvx4Ekr9h48JG23Dzg+OFQC7bZbeayOE8TCWdMJaQoOlzAgHAogGVOCWWDdGd+jd JaX0itUCaKASIIRxT5OvM/Iff7+yCtCCB08zRj9Ddkng58Qdw6dVtOonnt9n6kuo6Otd 6MKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TV0XJxjk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u18-20020a17090341d200b0015eab1c592dsi12030413ple.517.2022.05.08.21.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:48:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TV0XJxjk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7B25D12E30E; Sun, 8 May 2022 21:48:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389060AbiEFFLF (ORCPT + 99 others); Fri, 6 May 2022 01:11:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237609AbiEFFLE (ORCPT ); Fri, 6 May 2022 01:11:04 -0400 Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [170.10.129.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B81FF5C743 for ; Thu, 5 May 2022 22:07:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651813641; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g6E1pXSuXnGJCOs9j++ophWFQwyix2hw0YWNzaJ/VKU=; b=TV0XJxjkXUA89kfNWpZZnsDVwc1WRpv222Wac01p1uBB/Z7rPMJaXwMUIz4zYzhelG/3no 985KA/lDItLYaRYcZLWjeZR5nQReQxDC5V/fDeORErZdUikiGUcvJz2Fi5McIhzYVF/haM BQw08+qe6h2JdzHDGyMWX8Rfn3z0sQE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-185-3738OETYOhmEkUGeAwj4Kw-1; Fri, 06 May 2022 01:07:17 -0400 X-MC-Unique: 3738OETYOhmEkUGeAwj4Kw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 308AF803B42; Fri, 6 May 2022 05:07:17 +0000 (UTC) Received: from localhost (ovpn-13-105.pek2.redhat.com [10.72.13.105]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7CC584021D9; Fri, 6 May 2022 05:07:16 +0000 (UTC) Date: Fri, 6 May 2022 13:07:13 +0800 From: Baoquan He To: lizhe , Andrew Morton Cc: vgoyal@redhat.com, dyoung@redhat.com, prudo@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] kernel/crash_core.c : remove redundant check of ck_cmdline Message-ID: References: <20220506043226.125611-1-sensor1010@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220506043226.125611-1-sensor1010@163.com> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Add Andrew to CC list On 05/05/22 at 09:32pm, lizhe wrote: > At the end of get_last_crashkernel(), the judgement of ck_cmdline is > obviously unnecessary and causes redundance, let's clean it up. > > Signed-off-by: lizhe > Acked-by: Baoquan He > Acked-by: Philipp Rudo > --- > kernel/crash_core.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/kernel/crash_core.c b/kernel/crash_core.c > index 256cf6db573c..c232f01a2c54 100644 > --- a/kernel/crash_core.c > +++ b/kernel/crash_core.c > @@ -222,9 +222,6 @@ static __init char *get_last_crashkernel(char *cmdline, > p = strstr(p+1, name); > } > > - if (!ck_cmdline) > - return NULL; > - > return ck_cmdline; > } > > -- > 2.25.1 >