From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 1 Nov 2015 13:58:35 +0100 From: Borislav Petkov To: "Kweh, Hock Leong" Cc: Matt Fleming , Greg Kroah-Hartman , "Ong, Boon Leong" , LKML , "linux-efi@vger.kernel.org" , Sam Protsenko , Peter Jones , Andy Lutomirski , Roy Franz , James Bottomley , Linux FS Devel , "Fleming, Matt" , "Anvin, H Peter" Subject: Re: [PATCH v9 1/1] efi: a misc char interface for user to update efi firmware Message-ID: <20151101125835.GC12711@pd.tnic> References: <1446055138-26047-1-git-send-email-hock.leong.kweh@intel.com> <1446055138-26047-2-git-send-email-hock.leong.kweh@intel.com> <20151101102944.GA12711@pd.tnic> <20151101105801.GB12711@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: On Sun, Nov 01, 2015 at 11:11:23AM +0000, Kweh, Hock Leong wrote: > Hmm .... If I combine these 2 flags to become one as > "NO_MORE_WRITE_ACTION" to better describing the situation, you Okay > with it? I don't understand, why combine? Why not simply make UPLOAD_DONE a positive value: #define UPLOAD_DONE 1 #define ERR_OCCURRED -1 0 would obviously mean, no errors occurred whatsoever. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.