The check is useless because pointer arithmetic ensures "info" is
always non-zero.
Replace it with an ASSERT for socket_info. The only caller of
free_socket_resources already ensures socket_info is not NULL before
calling it.
Coverity-ID:
1416344
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
unsigned int i;
struct psr_socket_info *info = socket_info + socket;
- if ( !info )
- return;
+ ASSERT(socket_info);
/*
* Free resources of features. The global feature object, e.g. feat_l3,