Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7495694imu; Tue, 22 Jan 2019 07:00:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN6eWrIe7iFvNK4zATakxMHrZmhlesR6VNqGvj/q3RJaLeMUoYu0x8c5t0fGp2HEF+wMqaZY X-Received: by 2002:a63:6346:: with SMTP id x67mr32217501pgb.183.1548169205297; Tue, 22 Jan 2019 07:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548169205; cv=none; d=google.com; s=arc-20160816; b=Ll2cdI/iX8dOyMNZQlFuhEF512vshIqe+KHeGNCfXNhFnwCUBp7FBLIcQl40cVtc/Q Ptf2rKAsSVpkQ/fkKSZ19Dt6m/RzgKW+STb7V9+rUAARVh1fuvh3X+MGDSgNpFkUhbbu CvQdRY29KgfAKF9WqikKwa9OrfbdzXKom12qEFyMmEGH5YnE1K6vKH/0Z+uNVEjy3Xk2 TxOY0NviWGX35RlUtGUaxUh0U22hnceOTZnHi3wEu84rbL7VoUDMse1jNdW1/22KEFwM W3qGuC/iiKj0QoNI2Z1CvolL5kkLfEeBRks8byItgNtFusoTHJ3SSLz8MPLS6OQLdK01 pUzg== 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=lFota1NgnzmnmBLQ3fjGblbdgCo2wbfKbp5qof7EB7k=; b=arDZ8vmxMUYkKBaRVD30CJiCGXDwr4q9tM7+sKRoB150OkjUcJ24TP2i+ujTAHDiJJ k6CIW/Lc8pOZvICcCtLpuLXyonjsUggWF0tHsqjMPwJJrrwmO3AhE8a+98Ws3Xe426YL rtuCNNve8lMpIEQKOf8DXxH27oyvulT7CrX3JiFpU6tpefBUosmLils515CQutR9ggX5 3J2y1nMjtnGOp7SfIlj/IPfbrgBgPiZcoxcGS9rFj3bVeLvEaKdLENAwGyS0atYkvSPN X76I545/rG27SYbJDNl4qa4tgp4YYDSS8Q0GSNpWKmiO1m5GvXkdsqBRUuelIeYAUZzX Pu1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Pql8MFFM; 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 27si16941465pgu.421.2019.01.22.06.59.49; Tue, 22 Jan 2019 07:00:05 -0800 (PST) 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=Pql8MFFM; 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 S1729076AbfAVO6b (ORCPT + 99 others); Tue, 22 Jan 2019 09:58:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:37772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729042AbfAVO62 (ORCPT ); Tue, 22 Jan 2019 09:58:28 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 B415621721; Tue, 22 Jan 2019 14:58:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548169108; bh=gYZj9qaJ7bptTBgQer0YtqW1bdsjHU1QLtHpEBye3W8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pql8MFFMb4i8rPRx/sfcNWjj7huukMHE76OplC7DdwjCZrKdVgmsl81e5YaXo1V0F VkJMfSyRt79NduPBlfchtdbEz3yFCumF/rGVQwkEV9p/OYGyNyPuLFgrajp6Dl1AJI U7TcjrltT12iUFn429cPv6Sq4AmTf6vCEq7eixNg= From: Greg Kroah-Hartman To: Ralf Baechle , Paul Burton , James Hogan , John Crispin Cc: linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 2/5] mips: ralink: no need to check return value of debugfs_create functions Date: Tue, 22 Jan 2019 15:57:39 +0100 Message-Id: <20190122145742.11292-3-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190122145742.11292-1-gregkh@linuxfoundation.org> References: <20190122145742.11292-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: John Crispin Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-mips@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- arch/mips/ralink/bootrom.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/mips/ralink/bootrom.c b/arch/mips/ralink/bootrom.c index e1fa5972a81d..648f5eb2ba68 100644 --- a/arch/mips/ralink/bootrom.c +++ b/arch/mips/ralink/bootrom.c @@ -35,13 +35,7 @@ static const struct file_operations bootrom_file_ops = { static int bootrom_setup(void) { - if (!debugfs_create_file("bootrom", 0444, - NULL, NULL, &bootrom_file_ops)) { - pr_err("Failed to create bootrom debugfs file\n"); - - return -EINVAL; - } - + debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_file_ops); return 0; } -- 2.20.1