staging: lustre: lnet/selftest: don't ignore status from lstcon_test_add
authorNeilBrown <neilb@suse.com>
Thu, 22 Feb 2018 22:09:33 +0000 (09:09 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Feb 2018 13:45:10 +0000 (14:45 +0100)
commitbafc56491bf3ec090994fc3a2451ec3c68d5bc1b
tree66000123349544d3d947ade3faf19f5fb6fa5798
parent17556cdbe6ed70a6a20e597b228628f7f34387f8
staging: lustre: lnet/selftest: don't ignore status from lstcon_test_add

If lstcon_test_add sets 'ret' (passed by reference) to 1,
then lst_test_add_ioctl() ignores the return value.
This isn't justified - the return value must be zero for 'ret'
to be meaningful.

Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/conctl.c