[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080510190759.GA16275@lst.de>
Date: Sat, 10 May 2008 21:07:59 +0200
From: Christoph Hellwig <hch@....de>
To: Robert Richter <robert.richter@....com>
Cc: Carl Love <cel@...ibm.com>, linuxppc-dev@...abs.org,
oprofile-list <oprofile-list@...ts.sourceforge.net>,
cbe-oss-dev@...abs.org, Arnd Bergmann <arnd@...db.de>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [Cbe-oss-dev] [PATCH] Updated: Reworked Cell OProfile: SPU mutex lock fix
> > + /* 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists