CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2010/04/09 16:42:10

Modified files:
        sys/nfs        : nfs_bio.c 

Log message:
make more bettah. instead of doing:

switch(type) {
case VREG:
/*something */
break;
case VLNK:
/* something */
break;
default:
panic("wtf?");
}

do_something_that_doesn't_change_type();

switch(type) {
case VREG:
/* nowt */
break;
case VLNK:
n = 0;
break;
default:
panic("wtf?");
}

be a bit less silly and replace the second switch with:

if (type == VLNK)
n = 0;

ok beck@, blambert@

Reply via email to