Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbbKAM6y (ORCPT ); Sun, 1 Nov 2015 07:58:54 -0500 Received: from mail.skyhub.de ([78.46.96.112]:54225 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbbKAM6v (ORCPT ); Sun, 1 Nov 2015 07:58:51 -0500 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: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 24 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/