lkml.org 
[lkml]   [2009]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Patch] selinux: remove an unreachable line
From
Date
On Tue, 2009-12-01 at 02:41 -0500, Amerigo Wang wrote:
> This line is unreachable, remove it.
[]
> diff --git a/security/selinux/ss/mls.c b/security/selinux/ss/mls.c
> index b5407f1..a2f1034 100644
> --- a/security/selinux/ss/mls.c
> +++ b/security/selinux/ss/mls.c
> @@ -544,7 +544,6 @@ int mls_compute_sid(struct context *scontext,
> default:
> return -EINVAL;
> }
> - return -EINVAL;
> }

I think it's better to remove the default case.



\
 
 \ /
  Last update: 2009-12-01 08:47    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site