Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5897192ybi; Wed, 12 Jun 2019 10:17:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAQ+WYNxHpUIBRgeganqQw+XeZfKn6JsIk5Ep1z2dx9SzDFsKtVaXtxEyWNk1nkpjmLmar X-Received: by 2002:a17:902:1486:: with SMTP id k6mr18547162pla.177.1560359868975; Wed, 12 Jun 2019 10:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560359868; cv=none; d=google.com; s=arc-20160816; b=dRwENhpGqaRtV+npk5Gt/gJAy8TJD23taqb0i/5zQnkDZQO35QLD14Rx6b+PS2XYo1 xPg7r4SmVzG+t4dTukMBY/+upV4qWEOOZJrfl6AtjR25IKOOFMUOzCsFpu3fVFtDh1pU VBNSMV+T2Jr8WV/VUD/yHR6l37qOvVTyDFuQGuKAkzlmVYP4/YThWQK+srwqyHi9U9pq xHIqxWrayyHQYR3WTg6dAlfmnCynD9asU+ncdxC7H/Joq8jxRaVLXtZdXjsLvKJ1IEaw 3ytZZmMX0srjVjkK9O9oM4iFOnu9m4KuzKsO6UQgzeAaV44FcJ+ldcInx/QBXgHQn83M 9bdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CRXoE0aoA8Yv+s1EzyWQ1GbX/k3IkJ3jHQuVq+1Zssk=; b=BOknzouNzIQ+TT2s4Bk6t94ZWyWxLrIUzZhBA4tVrgPfG0gkM1Fz+Mj1Ozv1wcgc/1 d0jx5TNCGk3rcDT3IyNyhF+8G5FnDF25/2lNbFS9v7b5ZMdHvhzuc0zWkobKSBD7BWW2 jTNHNnaosO+ZTy33GbxaB17coJjGIzlxb14UepnUJbeTNTatYZr/0t1LNGAt7SXVzVZz jU79EGoi8qu1TdjOEUwKlSPWpzuG4jngixgL9bgFzPgy2t9XRrZNWkO2kLmiDEQ2M5/g 0OZ700uTSqU1/iQ2bgiqycobr0k+nBz47+mz+xCj9DQyxRsx/xduJatlSJrlkd3lSe5o vY3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qlVHyjho; 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 c145si301345pfb.9.2019.06.12.10.17.34; Wed, 12 Jun 2019 10:17:48 -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=@kernel.org header.s=default header.b=qlVHyjho; 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 S2438647AbfFLM0U (ORCPT + 99 others); Wed, 12 Jun 2019 08:26:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:59674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727079AbfFLM0T (ORCPT ); Wed, 12 Jun 2019 08:26:19 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 26965208CA; Wed, 12 Jun 2019 12:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560342378; bh=hapQOj2oV7lQmVlqOLUMvP5SDFlMe6BD5fHLQJfjJL8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qlVHyjhoutddiPVuU37MsTDl/etrcfE/rThCBroetqyu1eMVEqDUPYPgO9FSKfrVW q6UqidoZDJ1rYvU7vlG/fRU1SI5LqfKhFuD75u5e/N0JiFEpiHGqTtEBPNwJ3Q0xrd 67lmJduvIq5J4y5xJV+vZVmh9v6vBTEuKoLVDBpc= From: Greg Kroah-Hartman To: dan.j.williams@intel.com, vkoul@kernel.org Cc: Greg Kroah-Hartman , Sudeep Dutt , Ashutosh Dixit , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] dma: mic_x100_dma: no need to check return value of debugfs_create functions Date: Wed, 12 Jun 2019 14:25:56 +0200 Message-Id: <20190612122557.24158-5-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190612122557.24158-1-gregkh@linuxfoundation.org> References: <20190612122557.24158-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Sudeep Dutt Cc: Ashutosh Dixit Cc: Dan Williams Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/dma/mic_x100_dma.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/dma/mic_x100_dma.c b/drivers/dma/mic_x100_dma.c index 6a91e28d537d..584e09661507 100644 --- a/drivers/dma/mic_x100_dma.c +++ b/drivers/dma/mic_x100_dma.c @@ -728,10 +728,8 @@ static int mic_dma_driver_probe(struct mbus_device *mbdev) if (mic_dma_dbg) { mic_dma_dev->dbg_dir = debugfs_create_dir(dev_name(&mbdev->dev), mic_dma_dbg); - if (mic_dma_dev->dbg_dir) - debugfs_create_file("mic_dma_reg", 0444, - mic_dma_dev->dbg_dir, mic_dma_dev, - &mic_dma_reg_fops); + debugfs_create_file("mic_dma_reg", 0444, mic_dma_dev->dbg_dir, + mic_dma_dev, &mic_dma_reg_fops); } return 0; } -- 2.22.0