From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:48364 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbeB1BUO (ORCPT ); Tue, 27 Feb 2018 20:20:14 -0500 Date: Wed, 28 Feb 2018 01:20:12 +0000 From: "Luis R. Rodriguez" To: Kees Cook Cc: "Luis R. Rodriguez" , cantabile.desu@gmail.com, Jakub Kicinski , Greg KH , Andrew Morton , linux-wireless , Shuah Khan , Martin Fuzzey , Mimi Zohar , David Howells , pali.rohar@gmail.com, Takashi Iwai , arend.vanspriel@broadcom.com, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , nbroeking@me.com, Vikram Mulukutla , Mark Brown , Dmitry Torokhov , David Woodhouse , Linus Torvalds , Abhay_Salunke@dell.com, bjorn.andersson@linaro.org, jewalt@lgsinnovations.com, oneukum@suse.com, LKML , "linux-fsdevel@vger.kernel.org" Subject: Re: [RFT 3/7] firmware: make fw_add_devm_name() return 0 if cache present Message-ID: <20180228012012.GE14069@wotan.suse.de> References: <20180227232101.20786-1-mcgrof@kernel.org> <20180227232101.20786-4-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Feb 27, 2018 at 03:31:11PM -0800, Kees Cook wrote: > On Tue, Feb 27, 2018 at 3:20 PM, Luis R. Rodriguez wrote: > > Currently fw_add_devm_name() returns 1 if the firmware cache > > was already set. This makes it complicated for us to check for > > correctness. It is actually non-fatal if the firmware cache > > is already setup, so just return 0, and simplify the checkers. > > > > Signed-off-by: Luis R. Rodriguez > > That'll teach me to read all the patches first. ;) > > Honestly, I'd just fold this into the prior patch: there's only one > caller and it's exactly about checking the return value. Sounds good. Luis