x86: remove redundant checks in sysctl.c
authorYi Sun <yi.y.sun@linux.intel.com>
Thu, 31 Aug 2017 08:07:26 +0000 (16:07 +0800)
committerWei Liu <wei.liu2@citrix.com>
Thu, 31 Aug 2017 15:34:11 +0000 (16:34 +0100)
commite1c10ecdf7f0a4437e631bdbf887ce4af4c03a1b
tree14563c75554f26666b65a15991af765868a21fed
parent55bcee687bafc41819b142382ec12a940cc210e1
x86: remove redundant checks in sysctl.c

In sysctl.c, the return value of 'psr_get_info' has been checked immediately.
So, it is redundant to check the return value again when copy the field to
guest.

Suggested-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/sysctl.c