Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4376537ybi; Sat, 6 Jul 2019 03:52:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUpWsOqv4QatiHC2J0MKKiAOFcwJr6OcA293qjj5D1jzLvDVHEcnNEehtcqPHL1QXNys1N X-Received: by 2002:a17:90a:3548:: with SMTP id q66mr11106821pjb.17.1562410378138; Sat, 06 Jul 2019 03:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562410378; cv=none; d=google.com; s=arc-20160816; b=IilF3gtS4TZYXEtIGkriDmy676Eo0ma52/kafOXyobJqmlmHZ2XFBZiRm537hRU1+x AXk4DxDPMwXyVqDZ/2HUStcKZ59hiB5NLF0cZqN7pg52d5tR3gdcobQ256EFo4BrW6Np kMAV3m+fBM4P0Z0LmAYYN/cVGvTLImmOM6f2Hm6Y+bFtgloxdqRhfxzNWLtwXcKsYZQp t10UuY7vjhQeIO+t/8fSn/aeCABWm0kUfvsIsQp0sbmo4hQKrxufjyX4S+cD4kHxNl9s 3dBnO0ej27qglSWQXN6ZeXcKS8wQpnTRYeO0KFsIVSfX9EJVnokwdwl0H4H06G3RdQy9 QRvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=X2HzDRuKri8tlcVaHyQ9pqsDqSx9BzAPQqKdWeM1RBU=; b=CQchUeDfqM73cPuNcqNKsgqHzFEa9Kj8iWxQiH6hxg0700b6j3ri2VzrC+8LOWcqvt wYxbiIVlkowPJy2of7nfXJ7G1mLAb11g8FOQHBrRJfY49dCb4+vNzxnZZqxyQfVOty9Z 3xmICxaR/sCSYj48KpzeQ0FuBihnKp/s2IjBbEa7iufX4eN3JRlKoHkAhfjl1oLUiIbH VLuY/9A+CNdXm42VAS9Acu3c4gaKpDEIgTsORG4nOWQB4cnGrhRJadnLnnKrG9EFPwKf XI/acJmIukwQm76+CDtOncoIWR9FYzeOp6XLEQ8/SS6HpA+U/jOOMd1HGK9spPbZMgBh cLYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 a89si11756052pla.60.2019.07.06.03.52.44; Sat, 06 Jul 2019 03:52:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726213AbfGFKwU (ORCPT + 99 others); Sat, 6 Jul 2019 06:52:20 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:48167 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfGFKwU (ORCPT ); Sat, 6 Jul 2019 06:52:20 -0400 Received: from [192.168.0.113] (CMPC-089-239-107-172.CNet.Gawex.PL [89.239.107.172]) by mail.holtmann.org (Postfix) with ESMTPSA id 50269CF163; Sat, 6 Jul 2019 13:00:50 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] 6lowpan: no need to check return value of debugfs_create functions From: Marcel Holtmann In-Reply-To: <20190614071423.GA18533@kroah.com> Date: Sat, 6 Jul 2019 12:52:18 +0200 Cc: Alexander Aring , Jukka Rissanen , "David S. Miller" , linux-bluetooth@vger.kernel.org, linux-wpan@vger.kernel.org, netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <1D496433-35A6-478A-8B9D-FEEE557A2CA9@holtmann.org> References: <20190614071423.GA18533@kroah.com> To: Greg Kroah-Hartman X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Greg, > 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. > > Because we don't care if debugfs works or not, this trickles back a bit > so we can clean things up by making some functions return void instead > of an error value that is never going to fail. > > Cc: Alexander Aring > Cc: Jukka Rissanen > Cc: "David S. Miller" > Cc: linux-bluetooth@vger.kernel.org > Cc: linux-wpan@vger.kernel.org > Cc: netdev@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman > --- > net/6lowpan/6lowpan_i.h | 16 ++----- > net/6lowpan/core.c | 8 +--- > net/6lowpan/debugfs.c | 97 +++++++++++------------------------------ > 3 files changed, 32 insertions(+), 89 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel