From patchwork Tue Jan 22 14:57:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10775631 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0751091E for ; Tue, 22 Jan 2019 14:58:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA226291F5 for ; Tue, 22 Jan 2019 14:58:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE6A429350; Tue, 22 Jan 2019 14:58:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90D62291F5 for ; Tue, 22 Jan 2019 14:58:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728947AbfAVO6S (ORCPT ); Tue, 22 Jan 2019 09:58:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:37410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728853AbfAVO6S (ORCPT ); Tue, 22 Jan 2019 09:58:18 -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 13C1021721; Tue, 22 Jan 2019 14:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548169097; bh=G+WQwcnRE6zahJRQhFFcfB73LCT5sulYYfaDDPTEdgE=; h=From:To:Cc:Subject:Date:From; b=HPKbAz+HYESv8on9lNks2mjfITHM4wNFsO1ZzzbDRaf3W9aM5yi0pwkKnIVXwYHzh 0EtNQNN0mj/DPv9jzfUt/k/KbiP46RlNAWyPJZtjHZK1q425Mug9M/kJv3hvAejqHz I8//Q9tSjXwPh28bicuGGK0g9+W4ctW5lKykx7k0= 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 0/5] mips: cleanup debugfs usage Date: Tue, 22 Jan 2019 15:57:37 +0100 Message-Id: <20190122145742.11292-1-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When calling debugfs code, there is no need to ever check the return value of the call, as no logic should ever change if a call works properly or not. Fix up a bunch of x86-specific code to not care about the results of debugfs. Greg Kroah-Hartman (5): mips: cavium: no need to check return value of debugfs_create functions mips: ralink: no need to check return value of debugfs_create functions mips: mm: no need to check return value of debugfs_create functions mips: math-emu: no need to check return value of debugfs_create functions mips: kernel: no need to check return value of debugfs_create functions arch/mips/cavium-octeon/oct_ilm.c | 31 ++++----------------------- arch/mips/kernel/mips-r2-to-r6-emul.c | 21 ++++-------------- arch/mips/kernel/segment.c | 15 +++---------- arch/mips/kernel/setup.c | 7 +----- arch/mips/kernel/spinlock_test.c | 21 ++++-------------- arch/mips/kernel/unaligned.c | 16 ++++---------- arch/mips/math-emu/me-debugfs.c | 23 ++++---------------- arch/mips/mm/sc-debugfs.c | 15 +++---------- arch/mips/ralink/bootrom.c | 8 +------ 9 files changed, 28 insertions(+), 129 deletions(-)