From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 10 May 2008 21:07:59 +0200 From: Christoph Hellwig To: Robert Richter Subject: Re: [Cbe-oss-dev] [PATCH] Updated: Reworked Cell OProfile: SPU mutex lock fix Message-ID: <20080510190759.GA16275@lst.de> References: <1209587712.7531.42.camel@carll-linux-desktop> <20080509150759.GL24041@erda.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20080509150759.GL24041@erda.amd.com> Cc: Arnd Bergmann , linux-kernel , linuxppc-dev@ozlabs.org, oprofile-list , cbe-oss-dev@ozlabs.org, Carl Love List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > > + /* Ignoring the return value from the unregister > > + * call. A failed return value simply says there > > + * was no registered event. Hence there will not > > + * be any calls to process a switch event that > > + * could cause a problem. > > + */ > > + spu_switch_event_unregister(&spu_active); > > Better to use this here, to show the return value is ignored: > > (void)spu_switch_event_unregister(...) Actually Linux style is to not add those casts. But I don't think we all the notifier_chain_unregister funtion should return error at all, we should probably fix that up in the core code.