newbie firmware questions

If I replace the official firmware with a 3rd party firmware, will it void my warranty?
Also, in case I need to send my router back to Linksys, will I need to revert the 3rd party firmware back to the official firmware? (is it even possible to do this?)