Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp283416ybb; Thu, 28 Mar 2019 02:24:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgXgiJNJMvbVPIKEpuuNeCoDfgAjFhyArue79aRUOV3NtdRxJL4lkMJ6kUnznQz0Y/X6xZ X-Received: by 2002:a17:902:9881:: with SMTP id s1mr12414613plp.99.1553765096924; Thu, 28 Mar 2019 02:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553765096; cv=none; d=google.com; s=arc-20160816; b=Riz9DQ3Of8aItt5IemIOGpe0L4cgAYNLnI209QOey/gg6ZnQaLhsjpOwYRxa33cHv4 0TfmPIJ6Zj2/sgxztYf2iDOO7N540+ulwDqQv6HjnUau9J9mfwf3W8YG9qkmVOpcGjc1 1EJdRNVi0j8vLaNS7HlTHZUVHUBGHaxvlzcTFYUH6swoE0ljf23tjNLtAS4wp1rywl3J 8FMf/aMNZmu8En9nEjd57mpLv0WTV36Qt2bt9nR5EOAkhIp+LVBamNPPZloKupTnTuxB xCKaAKsnUtxQ6xlgkEvReVKirc53KjW0YZK64sXl9Sbb4K1YK3bD6y9APP5Ru82OZbWE xEEw== 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:to:from; bh=LOykmvqUxO5mbcL3os2xmOiiJxZwbzEAALh1zTWaRPI=; b=djvjqx48mlyPUP5J3mXeui4uRBJn64iA//9f4lXCt6kJ9dr+EnmTtvZnkvhJzGJFQA P3R7AJXhBiAcyLyCzWTWEyvNBEvR3U77oP5qo7hbFmCEuZc5qxqs7BJD7odCgwo1MBrV 5382WjEOSOHgzSQgilVonpM5PLR/tVTIZhL5PI5AhU1h95IQsXkzvHxlm/yfXyO8JbWc Hs1NeqDIlmnZ3VEbuEQ/oPYQjrnvNW3iHMn69t+fAmSBVnWTn8bXxFlAy0hhhe1uViwG nFsk7rHbRyODZAY+qPk+DaatB2yQADClR/kSuhAnPo7yAtVWvbKkBle44N5coyr0tApM 7wIA== ARC-Authentication-Results: i=1; mx.google.com; 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 h35si22540237plb.180.2019.03.28.02.24.41; Thu, 28 Mar 2019 02:24:56 -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; 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 S1726879AbfC1JYB (ORCPT + 99 others); Thu, 28 Mar 2019 05:24:01 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:32598 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbfC1JYB (ORCPT ); Thu, 28 Mar 2019 05:24:01 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.17]) by rmmx-syy-dmz-app07-12007 (RichMail) with SMTP id 2ee75c9c92a8f92-65a6a; Thu, 28 Mar 2019 17:23:52 +0800 (CST) X-RM-TRANSID: 2ee75c9c92a8f92-65a6a X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from dxhost1.openstacklocal (unknown[223.105.0.243]) by rmsmtp-syy-appsvr09-12009 (RichMail) with SMTP id 2ee95c9c92a86b6-f17f8; Thu, 28 Mar 2019 17:23:52 +0800 (CST) X-RM-TRANSID: 2ee95c9c92a86b6-f17f8 From: Ding Xiang To: rubini@gnudd.com, linux-kernel@vger.kernel.org Subject: [PATCH] drivers/fmc: remove unneeded NULL check Date: Thu, 28 Mar 2019 17:23:17 +0800 Message-Id: <1553764997-26484-1-git-send-email-dingxiang@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable will check in debugfs_remove_recursive, so the NULL check here is not needed Signed-off-by: Ding Xiang --- drivers/fmc/fmc-debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/fmc/fmc-debug.c b/drivers/fmc/fmc-debug.c index 3293072..ab868a3 100644 --- a/drivers/fmc/fmc-debug.c +++ b/drivers/fmc/fmc-debug.c @@ -168,6 +168,5 @@ int fmc_debug_init(struct fmc_device *fmc) void fmc_debug_exit(struct fmc_device *fmc) { - if (fmc->dbg_dir) - debugfs_remove_recursive(fmc->dbg_dir); + debugfs_remove_recursive(fmc->dbg_dir); } -- 1.9.1