Skip to content

Commit

Permalink
staging: lustre: fix spacing issues checkpatch reported in lnet selftest
Browse files Browse the repository at this point in the history
Remove any extra spacing as reported by checkpatch.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
James Simmons authored and Greg Kroah-Hartman committed Mar 12, 2016
1 parent 8a2c230 commit d47e33e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lnet/selftest/brw_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ brw_check_page(struct page *pg, int pattern, __u64 magic)
return 0;

if (pattern == LST_BRW_CHECK_SIMPLE) {
data = *((__u64 *) addr);
data = *((__u64 *)addr);
if (data != magic)
goto bad_data;

addr += PAGE_CACHE_SIZE - BRW_MSIZE;
data = *((__u64 *) addr);
data = *((__u64 *)addr);
if (data != magic)
goto bad_data;

Expand All @@ -208,7 +208,7 @@ brw_check_page(struct page *pg, int pattern, __u64 magic)

if (pattern == LST_BRW_CHECK_FULL) {
for (i = 0; i < PAGE_CACHE_SIZE / BRW_MSIZE; i++) {
data = *(((__u64 *) addr) + i);
data = *(((__u64 *)addr) + i);
if (data != magic)
goto bad_data;
}
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/lustre/lnet/selftest/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ lstcon_group_alloc(char *name, lstcon_group_t **grpp)

grp->grp_ref = 1;
if (name) {
if (strlen(name) > sizeof(grp->grp_name)-1) {
if (strlen(name) > sizeof(grp->grp_name) - 1) {
LIBCFS_FREE(grp, offsetof(lstcon_group_t,
grp_ndl_hash[LST_NODE_HASHSIZE]));
return -E2BIG;
Expand Down Expand Up @@ -525,7 +525,7 @@ lstcon_group_add(char *name)
lstcon_group_t *grp;
int rc;

rc = lstcon_group_find(name, &grp) ? 0: -EEXIST;
rc = lstcon_group_find(name, &grp) ? 0 : -EEXIST;
if (rc) {
/* find a group with same name */
lstcon_group_decref(grp);
Expand Down Expand Up @@ -1746,7 +1746,7 @@ lstcon_session_new(char *name, int key, unsigned feats,
console_session.ses_timeout = (timeout <= 0) ?
LST_CONSOLE_TIMEOUT : timeout;

if (strlen(name) > sizeof(console_session.ses_name)-1)
if (strlen(name) > sizeof(console_session.ses_name) - 1)
return -E2BIG;
strncpy(console_session.ses_name, name,
sizeof(console_session.ses_name));
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lnet/selftest/selftest.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ typedef struct sfw_test_case {
srpc_client_rpc_t *
sfw_create_rpc(lnet_process_id_t peer, int service,
unsigned features, int nbulkiov, int bulklen,
void (*done) (srpc_client_rpc_t *), void *priv);
void (*done)(srpc_client_rpc_t *), void *priv);
int sfw_create_test_rpc(sfw_test_unit_t *tsu,
lnet_process_id_t peer, unsigned features,
int nblk, int blklen, srpc_client_rpc_t **rpc);
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/lustre/lnet/selftest/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
struct stt_timer {
struct list_head stt_list;
time64_t stt_expires;
void (*stt_func) (void *);
void (*stt_func)(void *);
void *stt_data;
};

Expand Down

0 comments on commit d47e33e

Please sign in to comment.