Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5896936ybi; Wed, 12 Jun 2019 10:17:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxE7VX27TWbxGzmoZScjZLP4lM2G68Zmz1bEz8Su/sSEORiJaRu3iLW0xXrctUxpT2pPbHn X-Received: by 2002:a17:90a:1904:: with SMTP id 4mr273885pjg.116.1560359851889; Wed, 12 Jun 2019 10:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560359851; cv=none; d=google.com; s=arc-20160816; b=M5WraRlkxo3fUE0h/xbe8NaEqTEkmImDzZCju8RCIyRUfR/1abqfqo5aDQfprcPEWo GPeWNsWq9W+M4dSvH3NqFNfz03i9V9PnZoL4CheaED1mFh8IvdXN5C83s1tAwyLVXyKp hp4OlyPhfCpTowbRvy9fYcWw04O6olqmhpfVFrEY0ddgYl80COLc59Pm1Vu+heOSzgIj Wme/JYRXdkwAEeKTWX6M9lgruC8knXxltwra8ZhEqPbPtI7aVO6sSRiT3TWvEM8+hiz7 8R84LotWBoiR8UF9/CJqxXlz/zq8JdBPOJKNfnDWkvTV4Vye9qEY3DLZRYhHKEXa6sOV qzFA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=hkqRC3SK+T8maiuSHxz+dnkpzqNZiqR0WhDBEdBs790=; b=wT2cvYnshnZ/LZR9lIPDVpUu+8nw2tpoKpk/0XeH3oTlu/exnZunrF6UqR31EIOPNq fGQ/B3PuCYwOaJMZUnqjDZR7wobV84n10ZkVKeUS0WcvI0amiMyAZEbgffq0+PfBCOeh eoUiSaTo2dWWryfCMd8uMpL+PoWA13746Pkoz1vb5XmFmEWQJclut6mlz7QWmUvsdrvm wqgQS7w8mn0e6cBNswJ/NcJ9L8V/K7rzm4STRNuLIWobYuopr2XcuDac7rvdklwhRhUV DGea5MlQ7MzWTpt+/aTcDN7VvBmdf8OXyzEmIAokq5PQ7n/dKwhYVmAjXWexWkqAuKks Xofw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TaQ4iIgS; 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 e4si319862pjs.104.2019.06.12.10.17.16; Wed, 12 Jun 2019 10:17:31 -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=TaQ4iIgS; 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 S1731158AbfFLM0G (ORCPT + 99 others); Wed, 12 Jun 2019 08:26:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:59438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727079AbfFLM0E (ORCPT ); Wed, 12 Jun 2019 08:26:04 -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 D643320874; Wed, 12 Jun 2019 12:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560342364; bh=wczNPXZLnL6HqwLpJn7GMVKqkvkHn0jl5FDY27UAjhM=; h=From:To:Cc:Subject:Date:From; b=TaQ4iIgSMv5QJ1vtTO6Khgkel68PYje41aBD13uzeGtSPL9kAgE8UjQf4MuDURTSI Sgr8ByFCBOO1ky8TACxeKu2ivnxMxC13BXUHR58e2h7O9ZRwYydABgxjuat4Kgikkn 31Uj3A1SixVnl/Jku9XJLG4MtsplSrOSX/BzWMgs= From: Greg Kroah-Hartman To: dan.j.williams@intel.com, vkoul@kernel.org Cc: Greg Kroah-Hartman , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] dma: amba-pl08x: no need to cast away call to debugfs_create_file() Date: Wed, 12 Jun 2019 14:25:52 +0200 Message-Id: <20190612122557.24158-1-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 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 No need to check the return value of debugfs_create_file(), so no need to provide a fake "cast away" of the return value either. 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/amba-pl08x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 464725dcad00..9adc7a2fa3d3 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c @@ -2508,9 +2508,8 @@ DEFINE_SHOW_ATTRIBUTE(pl08x_debugfs); static void init_pl08x_debugfs(struct pl08x_driver_data *pl08x) { /* Expose a simple debugfs interface to view all clocks */ - (void) debugfs_create_file(dev_name(&pl08x->adev->dev), - S_IFREG | S_IRUGO, NULL, pl08x, - &pl08x_debugfs_fops); + debugfs_create_file(dev_name(&pl08x->adev->dev), S_IFREG | S_IRUGO, + NULL, pl08x, &pl08x_debugfs_fops); } #else -- 2.22.0