arch: powerpc: kvm: add signed type cast for comparation
authorChen Gang <gang.chen@asianux.com>
Mon, 22 Jul 2013 06:32:35 +0000 (14:32 +0800)
committerAlexander Graf <agraf@suse.de>
Wed, 28 Aug 2013 14:23:35 +0000 (16:23 +0200)
commit5d226ae56f4dee608099daa599d9df0d12e3b006
treeeca64013d43452c7ac6f32f371bf1d09420e78ee
parent87916442bd0ac0aaabcca4f7fcd7eb3d8bef0d34
arch: powerpc: kvm: add signed type cast for comparation

'rmls' is 'unsigned long', lpcr_rmls() will return negative number when
failure occurs, so it need a type cast for comparing.

'lpid' is 'unsigned long', kvmppc_alloc_lpid() return negative number
when failure occurs, so it need a type cast for comparing.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kvm/book3s_hv.c