From 1f755a827538226fff38aad128c4a6836bd89b48 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 16 Sep 2014 13:37:40 +0200 Subject: [PATCH] kvm: Make init_rmode_tss() return 0 on success. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In init_rmode_tss(), there two variables indicating the return value, r and ret, and it return 0 on error, 1 on success. The function is only called by vmx_set_tss_addr(), and ret is redundant. This patch removes the redundant variable, by making init_rmode_tss() return 0 on success, -errno on failure. Reviewed-by: Radim Krčmář Signed-off-by: Paolo Bonzini --- Reading git-format-patch failed