libxc: remove null pointer checks in xc_pm_get_{c, p}xstat
authorMatthew Daley <mattjd@gmail.com>
Wed, 30 Oct 2013 07:51:47 +0000 (20:51 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Oct 2013 21:55:51 +0000 (21:55 +0000)
commitd6dea2f6ab0f3724bd6c23d7004913aef2fd8cf2
treeb7c8cc9bdadb07bfc67baa7f2bfbf57d63b75d12
parent492da27a3edd9064937007d5d373ffc4f9bc6ff5
libxc: remove null pointer checks in xc_pm_get_{c, p}xstat

We don't check for null pointers in similar functions, and it's silly to
do so for these arguments here anyway; they should fail noisily if null
is passed.

While at it, remove pointless brackets.

Coverity-ID: 1055938
Coverity-ID: 1055939
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_pm.c