I found these cleanups while trying to simplify the use of dixLookupResourceByType, but I think they stand on their own and I thought they'd be easy to review. Anyone? Jamey