From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by ozlabs.org (Postfix) with ESMTP id 63721DE652 for ; Fri, 26 Sep 2008 07:13:11 +1000 (EST) From: David Howells In-Reply-To: References: To: Vitaly Mayatskikh Subject: Re: take in count O_NONBLOCK flag for rtas log Date: Thu, 25 Sep 2008 22:13:05 +0100 Message-ID: <1545.1222377185@redhat.com> Sender: dhowells@redhat.com Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Vitaly Mayatskikh wrote: > + if (!logging_enabled) { > + spin_unlock_irqrestore(&rtasd_log_lock, s); > + error = -ENODATA; > + goto out; > + } else > + nvram_clear_error_log(); The 'else' here is unnecessary. It's preceded inside the curlies by a goto. David