Liver fibrosis assessed with transient elastography is an independent risk factor for ischemic stroke.