diff options
author | James Simmons <jsimmons@infradead.org> | 2016-03-12 01:29:47 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-12 06:24:47 (GMT) |
commit | b794d796b45907a82c3541d64dc3947039f1d15e (patch) | |
tree | 7988d8681c948bda776b0869f7fe6c2e9d644a7e /drivers/staging/lustre/lnet/selftest/conctl.c | |
parent | ec436b9a08858e566f00e0bba717020812ecd6c0 (diff) | |
download | linux-b794d796b45907a82c3541d64dc3947039f1d15e.tar.xz |
staging: lustre: filter remaining extra spacing for lnet selftest
This patch is a result of a filter applied to the lnet selftest
code to remove the last bits of hidden white spaces.
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lnet/selftest/conctl.c')
-rw-r--r-- | drivers/staging/lustre/lnet/selftest/conctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/conctl.c b/drivers/staging/lustre/lnet/selftest/conctl.c index 9793bc6..872df72 100644 --- a/drivers/staging/lustre/lnet/selftest/conctl.c +++ b/drivers/staging/lustre/lnet/selftest/conctl.c @@ -100,7 +100,7 @@ lst_session_info_ioctl(lstio_session_info_args_t *args) !args->lstio_ses_featp || /* address for output features */ !args->lstio_ses_ndinfo || /* address for output ndinfo */ !args->lstio_ses_namep || /* address for output name */ - args->lstio_ses_nmlen <= 0 || + args->lstio_ses_nmlen <= 0 || args->lstio_ses_nmlen > LST_NAME_SIZE) return -EINVAL; @@ -297,7 +297,7 @@ lst_group_update_ioctl(lstio_group_update_args_t *args) break; case LST_GROUP_RMND: - if (args->lstio_grp_count <= 0 || + if (args->lstio_grp_count <= 0 || !args->lstio_grp_idsp) { rc = -EINVAL; break; @@ -368,7 +368,7 @@ lst_group_list_ioctl(lstio_group_list_args_t *args) if (args->lstio_grp_key != console_session.ses_key) return -EACCES; - if (args->lstio_grp_idx < 0 || + if (args->lstio_grp_idx < 0 || !args->lstio_grp_namep || args->lstio_grp_nmlen <= 0 || args->lstio_grp_nmlen > LST_NAME_SIZE) @@ -591,7 +591,7 @@ lst_batch_list_ioctl(lstio_batch_list_args_t *args) if (args->lstio_bat_key != console_session.ses_key) return -EACCES; - if (args->lstio_bat_idx < 0 || + if (args->lstio_bat_idx < 0 || !args->lstio_bat_namep || args->lstio_bat_nmlen <= 0 || args->lstio_bat_nmlen > LST_NAME_SIZE) @@ -755,7 +755,7 @@ static int lst_test_add_ioctl(lstio_test_args_t *args) goto out; LIBCFS_ALLOC(dst_name, args->lstio_tes_dgrp_nmlen + 1); - if (!dst_name) + if (!dst_name) goto out; if (args->lstio_tes_param) { |