Hi!

     In kernel often used constructions, similar to next:

        if (get_cds(drv ? drv - 1 : default_drive) == NULL)

but for `default_drive' get_cds() always should be non-NULL, so this code
may be optimized:

        if (drv && get_cds(drv - 1) == NULL)

Question: is there possible, that CDSp[default_drive].cdsFlags will be
changed or .cdsDpb will be cleared, but default_drive will not be changed?




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to