staging: lustre: lnet: fix build warning in module.c
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jan 2018 08:24:46 +0000 (09:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Jan 2018 08:36:22 +0000 (09:36 +0100)
commit3fc0b7d3e0a4d37e4c60c2232df4500187a07232
treeebb36eb80a822ff952fd99b7570da9c8de5c6e26
parent0f45b23aedf91ae66890d13320c5147c15013a0c
staging: lustre: lnet: fix build warning in module.c

With the latest patches from Neil, we are now getting a build warning:

drivers/staging/lustre/lnet/selftest/module.c: In function ‘lnet_selftest_init’:
drivers/staging/lustre/lnet/selftest/module.c:98:10: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   return rc;
          ^~

So fix this up by giving a default error value to rc.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/module.c