lkml.org 
[lkml]   [2015]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] spi: omap2-mcspi: disable other channels CHCONF_FORCE in prepare_message
On Thu, Oct 08, 2015 at 10:21:05AM -0500, Michael Welling wrote:
> On Thu, Oct 08, 2015 at 04:45:00PM +0200, Neil Armstrong wrote:

> What is the point of doing this void cast below?
> Avoiding compiler warning perhaps?
> Perhaps you can __maybe_unused for the variable instead?

> > + /* Ignore message */
> > + (void)msg;

You shouldn't need it at all, but yes if there is a good reason to mark
something as unused the above annotation is better.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-10-09 14:01    [W:0.069 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site