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: 10939273 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6EDEE912 for ; Fri, 10 May 2019 16:56:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C13B28A8B for ; Fri, 10 May 2019 16:56:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CB8B2899C; Fri, 10 May 2019 16:56:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0248D2899C for ; Fri, 10 May 2019 16:56:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727800AbfEJQ44 (ORCPT ); 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-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;