From patchwork Wed Feb 11 08:33:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bas Peters X-Patchwork-Id: 5810881 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0BA9DBF440 for ; Wed, 11 Feb 2015 08:34:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C67C2011D for ; Wed, 11 Feb 2015 08:34:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7AA4D20114 for ; Wed, 11 Feb 2015 08:34:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751616AbbBKIdZ (ORCPT ); Wed, 11 Feb 2015 03:33:25 -0500 Received: from mail-we0-f171.google.com ([74.125.82.171]:56634 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751442AbbBKIdY (ORCPT ); Wed, 11 Feb 2015 03:33:24 -0500 Received: by mail-we0-f171.google.com with SMTP id p10so1876605wes.2; Wed, 11 Feb 2015 00:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=HbmMLoJF3q4QCFKS9u0RxoNQJhpDNOaRix9Mr/ZY6uA=; b=HhDm7Tg45B6SURc0bS/LpQ6fR34YaLo2zsDF3cSiePtpcY19aspZWcjpVMbFggXmnU 7ArHburatsgVatBANZMOXoY1zqwAv9wCoU1rIKqSVUZnG4ZUUPk+tUzx/D/Qy4v4KTVf FZ3JNVFaj3u6qlNPREM/Znyj+Rk67zhXGFPP7Pdy6/2/T6yOYpwwJiX7Oh7LaFtsVGFM i6Z7PZ1VJmIuQKRVuMe6/6+WyCAEgaGl/5QXPtBTvoufXzgewpfN+O6QiduGYv7HMI0g UBtSwHDNRd5WNaIuWG1svvKjWjqWNg2owiBiejWf7Pz6OBgQdUhjeAdfV9O63gm+qdGa /uPw== X-Received: by 10.180.79.106 with SMTP id i10mr45865491wix.35.1423643602702; Wed, 11 Feb 2015 00:33:22 -0800 (PST) Received: from localhost ([2a02:1810:cc28:1600:5ec5:d4ff:fe65:1657]) by mx.google.com with ESMTPSA id u9sm206598wjy.37.2015.02.11.00.33.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 00:33:21 -0800 (PST) From: Bas Peters To: kvalo@codeaurora.org Cc: Bas Peters , linville@tuxdriver.com, johannes.berg@intel.com, dcbw@redhat.com, libertas-dev@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: wireless: libertas: debugfs.c: remove unnecessary check before calling debugfs_remove Date: Wed, 11 Feb 2015 09:33:06 +0100 Message-Id: <1423643586-11002-1-git-send-email-baspeters93@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Debugfs_remove will check for error or NULL for us, so it is not necessary to do this here. Signed-off-by: Bas Peters --- drivers/net/wireless/libertas/debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index cc6a0a5..26cbf1d 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c @@ -742,8 +742,7 @@ void lbs_debugfs_init(void) void lbs_debugfs_remove(void) { - if (lbs_dir) - debugfs_remove(lbs_dir); + debugfs_remove(lbs_dir); } void lbs_debugfs_init_one(struct lbs_private *priv, struct net_device *dev)