lkml.org 
[lkml]   [2009]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch] selinux: remove an unreachable line
On Tue, 1 Dec 2009, Cong Wang wrote:

> > > default:
> > > return -EINVAL;
> > > }
> > > - return -EINVAL;
> > > }
> >
> > I think it's better to remove the default case.
> >
>
> This is totally a personal taste, I think.
> Either is OK. James, any comments?

Leave the default: there but with a comment /* fall through */
instead of the return.



--
James Morris
<jmorris@namei.org>


\
 
 \ /
  Last update: 2009-12-01 11:37    [W:0.085 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site