From patchwork Fri May 10 16:56:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 163904 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:142:0:0:0:0 with SMTP id j2csp2626000ilr; Fri, 10 May 2019 09:56:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZyC/v75qEcluAzLX9EGVTQt7Q/i4tnbW/5wXbQTx/bICHjtIYtfEcx10DSW+qEIvLhf8o X-Received: by 2002:aa7:8c48:: with SMTP id e8mr15925796pfd.80.1557507418682; Fri, 10 May 2019 09:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557507418; cv=none; d=google.com; s=arc-20160816; b=i2fORXEzwxOxEBhJCFoTutvz9QbSsy4do7/IPqjSwmx3T1b/7eeEJbYLJshfLGlloC zRq1wlahZAF3wXUd+QBmjo3Ns3Vt7k677+pDM+bBAeZrKV2EvRmixZNSV0Zl6k0bBJ/Y QhUlbJPFDo7FCMYSOKxLmpKrjZIKtIdcJ15x39ZSu4ZJjiL81aSKAXgJve2NJBpMfobg dp3yTY5eVy6xggfMK+Ly8+ImFxMJpA7fFth99ivLzgRlgz7G0MDSMXOIitpcMtM3q8PV Wn2X465briu6N00+n+7RhJFSqskNK/2rtQi1m+wV9J5tk7LEvpLDhIyoklpxu+c38ETG k0Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=N7mSQ4tVVX/KC8PH5fw/1F8p9+stEg4TYw+cHa0/ONA=; b=T7QkLYK3iyCI2AzYuOe6XfHoRJF8np/6fTeRlcK9QIFTusK+VfNSrDs1Z3kI+KRZft 3zxtLMDuW1EL+pSqbzjYxDpae9J8fSyp5ZDUsRRafLgFd5Fl4gkJnuL1RA9RtuRI4Fo9 phCRAbZRghSthsxETehaespuA2ce6a1W7Ry8tJ9WgMVCoNP4qNIEk8qH8Klq483BPZj7 mWIMLdKCW+IX3MrvYmU5dO7PwYp8Z+g6hjG6oh1e4axAxUYhJPmO5lpkfcePgRCsTiUL U7iucx2DR95qAhyvujTVow5HXlUuwmGVBlvWnHO/CrDO9CVj6neWB2g8r6QzXyx9X6Zc J+iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CcvwFCiD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si8886726pgh.191.2019.05.10.09.56.57; Fri, 10 May 2019 09:56:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=CcvwFCiD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727937AbfEJQ44 (ORCPT + 30 others); Fri, 10 May 2019 12:56:56 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:55604 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbfEJQ44 (ORCPT ); Fri, 10 May 2019 12:56:56 -0400 Received: from grover.flets-west.jp (softbank126125154139.bbtec.net [126.125.154.139]) (authenticated) by conuserg-11.nifty.com with ESMTP id x4AGunoM012770; Sat, 11 May 2019 01:56:50 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x4AGunoM012770 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1557507410; bh=N7mSQ4tVVX/KC8PH5fw/1F8p9+stEg4TYw+cHa0/ONA=; h=From:To:Cc:Subject:Date:From; b=CcvwFCiDPjzngQEX9VJ3h96klp0aF8OrB5UMg/1mj9j4LMZV/RjdOXM5X6yIsNDXI 3E+q4YRIx7GXZK6079kyfIDENG0M2L++N0upIIOznogqG3Qh109wyVHCH8gRi8SojI KiqBSwXKA2pcCrbjTRSb2GQRO+YzcXMDkkIjEF4rN+vrnOwgEFqi+B5EzXuG7Nw2pi 5zTPQ6neOxDA0Hml6gIIeZodJUubq2YRBsPx8aLfPz9L+pkiecQv0gLYpgViFOl7Ng 5rJ0GD06SKaKeqpTFXD/HxU5AH6/csvSdBNOyXuHRvGi/9bnuvf9yomgf5g5PswjEl qWyQdcE9g6BBw== X-Nifty-SrcIP: [126.125.154.139] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] kconfig: remove useless pointer check in conf_write_dep() Date: Sat, 11 May 2019 01:56:48 +0900 Message-Id: <1557507408-7992-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org conf_write_dep() has just one caller: conf_write_dep("include/config/auto.conf.cmd"); "name" always points to a valid string. Signed-off-by: Masahiro Yamada --- scripts/kconfig/confdata.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 399973e..431b805 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -961,8 +961,6 @@ static int conf_write_dep(const char *name) struct file *file; FILE *out; - if (!name) - name = ".kconfig.d"; out = fopen("..config.tmp", "w"); if (!out) return 1;