From patchwork Tue Jun 18 15:50:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 1118082 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="z05ck0cu"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45Ssxh65Fbz9sBr for ; Wed, 19 Jun 2019 01:51:04 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729319AbfFRPvD (ORCPT ); Tue, 18 Jun 2019 11:51:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:37008 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729246AbfFRPvD (ORCPT ); Tue, 18 Jun 2019 11:51:03 -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 8650E20673; Tue, 18 Jun 2019 15:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560873062; bh=amiGxlK9jktZZWhSySTfq7svLj5sClCQ7XV1YNGtBkw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z05ck0cuuyZ6PdknHth1oOp4sqlEQkrhdylgFxwM+OJ4L3ZS/qS3vZkZHHA+muLUH hSfT9StYXXiegD3kOVlRhNmBve2u+POgwb/wN00gChPsxNhAtU/3lvy3p+tvblkuH6 ChpFvEZ9bTcdjXz+7I+trIK4dVwIXLkbjNqrSq7M= From: Greg Kroah-Hartman To: bamv2005@gmail.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com Cc: Greg Kroah-Hartman , Thierry Reding , Jonathan Hunter , linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 2/3] gpio: tegra: no need to cast away return value of debugfs_create_file() Date: Tue, 18 Jun 2019 17:50:46 +0200 Message-Id: <20190618155047.16894-2-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190618155047.16894-1-gregkh@linuxfoundation.org> References: <20190618155047.16894-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org It is fine to ignore the return value (and encouraged), so need to cast away the return value, you will not get a build warning at all. Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Thierry Reding Cc: Jonathan Hunter Cc: linux-gpio@vger.kernel.org Cc: linux-tegra@vger.kernel.org Signed-off-by: Greg Kroah-Hartman Acked-by: Jon Hunter Acked-by: Thierry Reding --- drivers/gpio/gpio-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index 6d9b6906b9d0..a54bba1bda6c 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c @@ -550,8 +550,8 @@ DEFINE_SHOW_ATTRIBUTE(tegra_dbg_gpio); static void tegra_gpio_debuginit(struct tegra_gpio_info *tgi) { - (void) debugfs_create_file("tegra_gpio", 0444, - NULL, tgi, &tegra_dbg_gpio_fops); + debugfs_create_file("tegra_gpio", 0444, NULL, tgi, + &tegra_dbg_gpio_fops); } #else