diff options
| author | Oleg Drokin <green@linuxhacker.ru> | 2014-08-11 22:18:29 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-16 12:23:18 -0700 |
| commit | 459d3236ad453642db3b99817c10a57d7d77faa4 (patch) | |
| tree | d7d156b0a9ed3e79a0455181b356bbb7e8b9b6cc /include/linux/flex_array.h | |
| parent | ab909585b813193bb45f52367c1e7d056e33cfa9 (diff) | |
staging/lustre/lnet: Fix potential uninitialized variable warning
Greg reports that with one of the patches in his queue
there's now an unused variable warning in lnet_parse_ip2nets
for ipaddrs variable.
Apparently the warning is a false positive as in all cases where
lnet_ipaddr_enumerate can return without setting ipaddrs to something
a negative return value is returned that is then checked
before we actually use ipaddrs.
Assign ipaddrs to NULL to quiet this.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions
