Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7744265imu; Tue, 22 Jan 2019 10:51:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN69KCCts4D1qZMnWpMNhke3erAlU7MN6z3H+yGwP7Yiv8AXzFYTb6XN8RNiBsAFtAYp+xX1 X-Received: by 2002:a63:e20a:: with SMTP id q10mr32155320pgh.206.1548183067057; Tue, 22 Jan 2019 10:51:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548183067; cv=none; d=google.com; s=arc-20160816; b=cDjtNgo7k2zWgqO/5fNPSUhD45F0zbvaOEGPjFlIAxsc7l87jdKJhExgscl2s3yU0s wXjUCQCgMXeZTOtB+1BplRgWWqT4xcewsok8Nf1SPvseWB6TdGqDP3HOYGVf51BEPnCC zosioUNjM63jG1Y5q1aTMAP6e2qI/1VQTD3P/dRfmsV6IsNtMsilUztowCML4FBdVrEe 3SXYQW5U5ztmLlbds0a1shq2XPOVDev8HoheCk0s7eRl7RcHYDp2Rd/GhI39iygAfszY A59D/zU1YF73pnVbaNSdNhehIMFJgXEDAzP8N3ZUlEwbUHv+fFJhJqz0CVCVDtR5Xuxg 7JGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sEuNDN8fvfSuuapJPcr3pcqUuno+NKPzZ2YlKOSU+SE=; b=GDIv7CBcYRq9V5ITyx8McTBsl6FFUEqPmjS9Z9YQT1P6txJvAoMuigRwDWLpqOeoxa qR9UAz2zrzarDXQz4fkVDxwmcZtlDap6wGf64Xo/ejhePw8rnjAQmnsSr4KrNojaiu2b 6qPG0l3FiDCvkipHie8fMAkYXqS7QrHJqWQ6AkDZQAqy4P27iOpjbmDrnrUbXidrtq4Q YkyW1FCL5I47f243WUrr4ETqi7CN3NOiHUaelrE472RUL8siqW8pFwIiSYva/on0kFSS xAVCHsy+FaHe8XsFzKXKiwlctA+7zvRkVwRYffGoausY+ApEf+o9zq0l7BMXEHLnR34+ YtPg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si15516978pfj.153.2019.01.22.10.50.51; Tue, 22 Jan 2019 10:51:07 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbfAVStA (ORCPT + 99 others); Tue, 22 Jan 2019 13:49:00 -0500 Received: from emh04.mail.saunalahti.fi ([62.142.5.110]:43904 "EHLO emh04.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbfAVSs7 (ORCPT ); Tue, 22 Jan 2019 13:48:59 -0500 Received: from darkstar.musicnaut.iki.fi (85-76-66-19-nat.elisa-mobile.fi [85.76.66.19]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id 8EFBA300BC; Tue, 22 Jan 2019 20:48:56 +0200 (EET) Date: Tue, 22 Jan 2019 20:48:56 +0200 From: Aaro Koskinen To: Greg Kroah-Hartman Cc: Ralf Baechle , Paul Burton , James Hogan , John Crispin , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH 1/5] mips: cavium: no need to check return value of debugfs_create functions Message-ID: <20190122184855.GB2792@darkstar.musicnaut.iki.fi> References: <20190122145742.11292-1-gregkh@linuxfoundation.org> <20190122145742.11292-2-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190122145742.11292-2-gregkh@linuxfoundation.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Jan 22, 2019 at 03:57:38PM +0100, Greg Kroah-Hartman wrote: > -static int init_debufs(void) > +static void init_debugfs(void) > { > - struct dentry *show_dentry; > dir = debugfs_create_dir("oct_ilm", 0); > - if (!dir) { > - pr_err("oct_ilm: failed to create debugfs entry oct_ilm\n"); > - return -1; > - } > - > - show_dentry = debugfs_create_file("statistics", 0222, dir, NULL, > - &oct_ilm_ops); > - if (!show_dentry) { > - pr_err("oct_ilm: failed to create debugfs entry oct_ilm/statistics\n"); > - return -1; > - } > - > - show_dentry = debugfs_create_file("reset", 0222, dir, NULL, > - &reset_statistics_ops); > - if (!show_dentry) { > - pr_err("oct_ilm: failed to create debugfs entry oct_ilm/reset\n"); > - return -1; > - } > - > + debugfs_create_file("statistics", 0222, dir, NULL, &oct_ilm_ops); > + debugfs_create_file("reset", 0222, dir, NULL, &reset_statistics_ops); > return 0; The return needs to be deleted now that the function is void. A.