git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
839049a
)
svcauth_gss: replace a trivial 'switch' with an 'if'
author
NeilBrown
<neilb@suse.de>
Thu, 12 Aug 2010 07:04:07 +0000
(17:04 +1000)
committer
J. Bruce Fields
<bfields@redhat.com>
Tue, 21 Sep 2010 23:16:31 +0000
(19:16 -0400)
Code like:
switch(xxx) {
case -error1:
case -error2:
..
return;
case 0:
stuff;
}
can more naturally be written:
if (xxx < 0)
return;
stuff;
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
No differences found