Barcelona coach Tito Vilanova has been discharged from hospital after undergoing an operation on his parotid gland.